OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title>Reduction</title> | 3 <title>Reduction</title> |
4 <style> | 4 <style> |
5 #content-container { | 5 #content-container { |
6 position:absolute; | 6 position:absolute; |
7 top:48px; | 7 top:48px; |
8 bottom:0; | 8 bottom:0; |
9 left:0; | 9 left:0; |
10 right:0; | 10 right:0; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 position:absolute; | 47 position:absolute; |
48 top:20px; | 48 top:20px; |
49 height:80px; | 49 height:80px; |
50 right:20px; | 50 right:20px; |
51 width:80px; | 51 width:80px; |
52 } | 52 } |
53 </style> | 53 </style> |
54 </head> | 54 </head> |
55 | 55 |
56 <script src="../../fast/repaint/resources/repaint.js"></script> | 56 <script src="../../fast/repaint/resources/repaint.js"></script> |
| 57 <script src="../../resources/run-after-display.js"></script> |
57 | 58 |
58 <script> | 59 <script> |
59 if (window.testRunner) { | 60 if (window.testRunner) { |
60 testRunner.dumpAsTextWithPixelResults(); | 61 testRunner.dumpAsTextWithPixelResults(); |
61 testRunner.waitUntilDone(); | 62 testRunner.waitUntilDone(); |
62 } | 63 } |
63 | 64 |
64 function repaintTest() { | 65 function repaintTest() { |
65 if (window.testRunner) | 66 runAfterDisplay(function() { |
66 testRunner.display(); | 67 document.getElementById('overflow').scrollTop = 30; |
67 | 68 runAfterDisplay(function() { |
68 document.getElementById('overflow').scrollTop = 30; | 69 document.getElementById('overflow').scrollTop = 50; |
69 if (window.testRunner) | 70 testRunner.notifyDone(); |
70 testRunner.display(); | 71 }); |
71 | 72 }); |
72 window.setTimeout(function() { | |
73 document.getElementById('overflow').scrollTop = 50; | |
74 testRunner.notifyDone(); | |
75 }, 0); | |
76 } | 73 } |
77 | 74 |
78 </script> | 75 </script> |
79 | 76 |
80 <body onload="runRepaintTest()"> | 77 <body onload="runRepaintTest()"> |
81 <div id="content-container"> | 78 <div id="content-container"> |
82 <div id="composited"></div> | 79 <div id="composited"></div> |
83 <div id="positioned-2"> | 80 <div id="positioned-2"> |
84 <div id="transformed-container" class="positioned-3"> | 81 <div id="transformed-container" class="positioned-3"> |
85 <div id="overflow" class="positioned-3"> | 82 <div id="overflow" class="positioned-3"> |
86 <div class="positioned-4"></div> | 83 <div class="positioned-4"></div> |
87 | 84 |
88 <div style="background-color:purple; width:50px; height:300p
x;"></div> | 85 <div style="background-color:purple; width:50px; height:300p
x;"></div> |
89 <br/> | 86 <br/> |
90 <div style="width:500px; height:50px; background-color:green
;"></div> | 87 <div style="width:500px; height:50px; background-color:green
;"></div> |
91 </div> | 88 </div> |
92 </div> | 89 </div> |
93 </div> | 90 </div> |
94 </div> | 91 </div> |
95 </body> | 92 </body> |
96 </html> | 93 </html> |
OLD | NEW |