OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
| 3 <script src="../../resources/run-after-display.js"></script> |
3 <style> | 4 <style> |
4 body { | 5 body { |
5 direction: rtl; | 6 direction: rtl; |
6 margin: 0px; | 7 margin: 0px; |
7 background-color: red; | 8 background-color: red; |
8 } | 9 } |
9 | 10 |
10 .positioned { | 11 .positioned { |
11 position: fixed; | 12 position: fixed; |
12 top: 50px; | 13 top: 50px; |
(...skipping 29 matching lines...) Expand all Loading... |
42 testRunner.waitUntilDone(); | 43 testRunner.waitUntilDone(); |
43 testRunner.dumpAsTextWithPixelResults(); | 44 testRunner.dumpAsTextWithPixelResults(); |
44 } | 45 } |
45 | 46 |
46 // The far left coordinate of the document varies by window width. | 47 // The far left coordinate of the document varies by window width. |
47 var offset = document.body.clientWidth - document.body.scrollWidth + 1; | 48 var offset = document.body.clientWidth - document.body.scrollWidth + 1; |
48 | 49 |
49 window.setTimeout(function() { | 50 window.setTimeout(function() { |
50 window.scrollTo(offset, 0); | 51 window.scrollTo(offset, 0); |
51 if (window.testRunner) { | 52 if (window.testRunner) { |
52 if (top == self) | 53 runAfterDisplay(function() { |
53 document.getElementById('layertree').innerText = window.inte
rnals.layerTreeAsText(document); | 54 if (top == self) |
54 testRunner.notifyDone(); | 55 document.getElementById('layertree').innerText = window.
internals.layerTreeAsText(document); |
| 56 testRunner.notifyDone(); |
| 57 }); |
55 } | 58 } |
56 }, 0); | 59 }, 0); |
57 } | 60 } |
58 window.addEventListener('load', doTest, false); | 61 window.addEventListener('load', doTest, false); |
59 </script> | 62 </script> |
60 <body> | 63 <body> |
61 <div id="root"></div> | 64 <div id="root"></div> |
62 <div class="positioned indicator"></div> | 65 <div class="positioned indicator"></div> |
63 <div class="positioned layer"></div> | 66 <div class="positioned layer"></div> |
64 | 67 |
65 <pre id="layertree"></pre> | 68 <pre id="layertree"></pre> |
66 </body> | 69 </body> |
67 </html> | 70 </html> |
OLD | NEW |