layout/reftests/bugs/599113-1.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 <html class="reftest-wait">
michael@0 2 <head>
michael@0 3 <script>
michael@0 4 function doTest() {
michael@0 5 window.scrollTo(0,101);
michael@0 6 // make sure we serve the invalidate the scroll caused, so the invalidate
michael@0 7 // doesn't get served later in our test (which would just make us pass when
michael@0 8 // we should actually fail)
michael@0 9 setTimeout("continueTest();", 0);
michael@0 10 }
michael@0 11 function continueTest() {
michael@0 12 document.getElementById("x").style.background = "blue";
michael@0 13 // make sure the invalidate for that change happens now, while we are
michael@0 14 // scrolled down
michael@0 15 document.documentElement.offsetLeft;
michael@0 16 setTimeout("finishTest();", 0);
michael@0 17 }
michael@0 18 function finishTest() {
michael@0 19 window.scrollTo(0,0);
michael@0 20 document.documentElement.removeAttribute('class');
michael@0 21 }
michael@0 22 document.addEventListener("MozReftestInvalidate", doTest, false);
michael@0 23 </script>
michael@0 24 </head>
michael@0 25 <body style="overflow: hidden;">
michael@0 26 <div id="x" style="position: absolute; left: 0px; top: 0px; width: 100px; height: 100px; background: red;"></div>
michael@0 27 <div style="height: 10000px;"></div>
michael@0 28 </body>
michael@0 29 </html>

mercurial