OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 body { | 4 body { |
5 direction: rtl; | 5 direction: rtl; |
6 margin: 0px; | 6 margin: 0px; |
7 background-color: red; | 7 background-color: red; |
8 } | 8 } |
9 | 9 |
10 .positioned { | 10 .positioned { |
(...skipping 22 matching lines...) Expand all Loading... |
33 #layertree { | 33 #layertree { |
34 position: absolute; | 34 position: absolute; |
35 top: 10000px; | 35 top: 10000px; |
36 left: 0px; | 36 left: 0px; |
37 } | 37 } |
38 </style> | 38 </style> |
39 <script> | 39 <script> |
40 function doTest() { | 40 function doTest() { |
41 if (window.testRunner) { | 41 if (window.testRunner) { |
42 testRunner.waitUntilDone(); | 42 testRunner.waitUntilDone(); |
43 testRunner.dumpAsText(true); | 43 testRunner.dumpAsTextWithPixelResults(); |
44 } | 44 } |
45 | 45 |
46 // The far left coordinate of the document varies by window width. | 46 // The far left coordinate of the document varies by window width. |
47 var offset = document.body.clientWidth - document.body.scrollWidth + 1; | 47 var offset = document.body.clientWidth - document.body.scrollWidth + 1; |
48 | 48 |
49 window.setTimeout(function() { | 49 window.setTimeout(function() { |
50 window.scrollTo(offset, 0); | 50 window.scrollTo(offset, 0); |
51 if (window.testRunner) { | 51 if (window.testRunner) { |
52 if (top == self) | 52 if (top == self) |
53 document.getElementById('layertree').innerText = window.inte
rnals.layerTreeAsText(document); | 53 document.getElementById('layertree').innerText = window.inte
rnals.layerTreeAsText(document); |
54 testRunner.notifyDone(); | 54 testRunner.notifyDone(); |
55 } | 55 } |
56 }, 0); | 56 }, 0); |
57 } | 57 } |
58 window.addEventListener('load', doTest, false); | 58 window.addEventListener('load', doTest, false); |
59 </script> | 59 </script> |
60 <body> | 60 <body> |
61 <div id="root"></div> | 61 <div id="root"></div> |
62 <div class="positioned indicator"></div> | 62 <div class="positioned indicator"></div> |
63 <div class="positioned layer"></div> | 63 <div class="positioned layer"></div> |
64 | 64 |
65 <pre id="layertree"></pre> | 65 <pre id="layertree"></pre> |
66 </body> | 66 </body> |
67 </html> | 67 </html> |
OLD | NEW |