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 height: 5000px; | 6 height: 5000px; |
6 background-color: red; | 7 background-color: red; |
7 overflow: hidden; | 8 overflow: hidden; |
8 } | 9 } |
9 | 10 |
10 #trigger { | 11 #trigger { |
11 -webkit-transform:translateZ(0); | 12 -webkit-transform:translateZ(0); |
12 } | 13 } |
13 | 14 |
14 #overlap { | 15 #overlap { |
15 width: 1000px; | 16 width: 1000px; |
16 height: 1000px; | 17 height: 1000px; |
17 background-color: green; | 18 background-color: green; |
18 position: fixed; | 19 position: fixed; |
19 left: 0px; | 20 left: 0px; |
20 top: 0px; | 21 top: 0px; |
21 } | 22 } |
22 </style> | 23 </style> |
23 </head> | 24 </head> |
24 <script> | 25 <script> |
25 function doTest() { | 26 function doTest() { |
26 if (window.testRunner) | 27 if (window.testRunner) { |
27 testRunner.dumpAsTextWithPixelResults(); | 28 testRunner.dumpAsTextWithPixelResults(); |
| 29 testRunner.waitUntilDone(); |
| 30 } |
28 window.scrollTo(0, 2000); | 31 window.scrollTo(0, 2000); |
29 if (window.testRunner) | 32 runAfterDisplay(function() { |
30 testRunner.display(); | 33 window.scrollTo(0, 1800); |
31 window.scrollTo(0, 1800); | 34 if (window.testRunner) |
| 35 testRunner.notifyDone(); |
| 36 }); |
32 } | 37 } |
33 window.addEventListener("load", doTest, false); | 38 window.addEventListener("load", doTest, false); |
34 </script> | 39 </script> |
35 <body> | 40 <body> |
36 <div id="trigger"></div> | 41 <div id="trigger"></div> |
37 <div id="overlap"></div> | 42 <div id="overlap"></div> |
38 </body> | 43 </body> |
39 </html> | 44 </html> |
OLD | NEW |