layout/reftests/bugs/413292-1.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html class="reftest-wait">
michael@0 3 <head>
michael@0 4
michael@0 5 <style>
michael@0 6 body { font-family: sans-serif; }
michael@0 7 </style>
michael@0 8
michael@0 9 <script type="text/javascript">
michael@0 10 var loopCount = 0;
michael@0 11 var pause = 10; // smaller values make the bug more likely to occur
michael@0 12 var src = "data:text/html,iframe 1 <iframe width='100' height='100' src='data:text/html,iframe 2'>";
michael@0 13 var start = new Date();
michael@0 14
michael@0 15 function ap()
michael@0 16 {
michael@0 17 document.getElementById("div").style.position = "absolute";
michael@0 18 setTimeout(bp, pause);
michael@0 19 }
michael@0 20
michael@0 21 function bp()
michael@0 22 {
michael@0 23 document.getElementById("div").style.position = "";
michael@0 24 setTimeout(cp, pause);
michael@0 25 }
michael@0 26
michael@0 27 function cp()
michael@0 28 {
michael@0 29 document.getElementById("iframe").setAttribute("src", src);
michael@0 30 setTimeout(nextIteration, pause);
michael@0 31 }
michael@0 32
michael@0 33 function nextIteration()
michael@0 34 {
michael@0 35 var now = new Date();
michael@0 36 loopCount++;
michael@0 37 if (loopCount < 20 && now - start < 5000) {
michael@0 38 ap();
michael@0 39 } else {
michael@0 40 document.body.textContent = "Done";
michael@0 41 document.documentElement.className = '';
michael@0 42 }
michael@0 43 }
michael@0 44 </script>
michael@0 45
michael@0 46 </head>
michael@0 47
michael@0 48 <body onload="ap();"><div id="div"><iframe id="iframe"></iframe></div></body>
michael@0 49 </html>

mercurial