752038.html (690B)
1 <html class="reftest-wait"> 2 <head> 3 <script> 4 5 // document.write() doesn't play well with reftest-wait, so we need to use an 6 // iframe. 7 // 8 // This test is designed to trigger an assertion, but that assertion depends on 9 // non-deterministic hashtable iteration ordering. The assertion seems to happen 10 // around 80% of the time, so we just run the operation 10 times. 11 12 var i = 0; 13 function iterate() { 14 ++i; 15 if (i < 10) { 16 document.getElementById("f").src = "752038-iframe.html"; 17 } else { 18 document.documentElement.removeAttribute("class"); 19 } 20 } 21 window.addEventListener('message', iterate); 22 23 </script> 24 </head> 25 <body> 26 <iframe id="f" src="752038-iframe.html"></iframe> 27 </body> 28 </html>