1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/xpconnect/crashtests/752038.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +<html class="reftest-wait"> 1.5 +<head> 1.6 +<script> 1.7 + 1.8 +// document.write() doesn't play well with reftest-wait, so we need to use an 1.9 +// iframe. 1.10 +// 1.11 +// This test is designed to trigger an assertion, but that assertion depends on 1.12 +// non-deterministic hashtable iteration ordering. The assertion seems to happen 1.13 +// around 80% of the time, so we just run the operation 10 times. 1.14 + 1.15 +var i = 0; 1.16 +function iterate() { 1.17 + ++i; 1.18 + if (i < 10) { 1.19 + document.getElementById("f").src = "752038-iframe.html"; 1.20 + } else { 1.21 + document.documentElement.removeAttribute("class"); 1.22 + } 1.23 +} 1.24 +window.addEventListener('message', iterate, false); 1.25 + 1.26 +</script> 1.27 +</head> 1.28 +<body> 1.29 +<iframe id="f" src="752038-iframe.html"></iframe> 1.30 +</body> 1.31 +</html>