Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <html class="reftest-wait"> |
michael@0 | 2 | <head> |
michael@0 | 3 | <script> |
michael@0 | 4 | |
michael@0 | 5 | // document.write() doesn't play well with reftest-wait, so we need to use an |
michael@0 | 6 | // iframe. |
michael@0 | 7 | // |
michael@0 | 8 | // This test is designed to trigger an assertion, but that assertion depends on |
michael@0 | 9 | // non-deterministic hashtable iteration ordering. The assertion seems to happen |
michael@0 | 10 | // around 80% of the time, so we just run the operation 10 times. |
michael@0 | 11 | |
michael@0 | 12 | var i = 0; |
michael@0 | 13 | function iterate() { |
michael@0 | 14 | ++i; |
michael@0 | 15 | if (i < 10) { |
michael@0 | 16 | document.getElementById("f").src = "752038-iframe.html"; |
michael@0 | 17 | } else { |
michael@0 | 18 | document.documentElement.removeAttribute("class"); |
michael@0 | 19 | } |
michael@0 | 20 | } |
michael@0 | 21 | window.addEventListener('message', iterate, false); |
michael@0 | 22 | |
michael@0 | 23 | </script> |
michael@0 | 24 | </head> |
michael@0 | 25 | <body> |
michael@0 | 26 | <iframe id="f" src="752038-iframe.html"></iframe> |
michael@0 | 27 | </body> |
michael@0 | 28 | </html> |