| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <script src="../../resources/run-after-display.js"></script> |
| 5 <style> | 6 <style> |
| 6 .bar { | 7 .bar { |
| 7 width: 200px; | 8 width: 200px; |
| 8 height: 50px; | 9 height: 50px; |
| 9 margin-left: 50px; | 10 margin-left: 50px; |
| 10 background-color: gray; | 11 background-color: gray; |
| 11 -webkit-transform: translateZ(0); | 12 -webkit-transform: translateZ(0); |
| 12 } | 13 } |
| 13 | 14 |
| 14 #overflow { | 15 #overflow { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 35 if (window.testRunner) { | 36 if (window.testRunner) { |
| 36 testRunner.dumpAsTextWithPixelResults(); | 37 testRunner.dumpAsTextWithPixelResults(); |
| 37 testRunner.waitUntilDone(); | 38 testRunner.waitUntilDone(); |
| 38 } | 39 } |
| 39 | 40 |
| 40 function doTest() | 41 function doTest() |
| 41 { | 42 { |
| 42 var overflow = document.getElementById('overflow'); | 43 var overflow = document.getElementById('overflow'); |
| 43 overflow.scrollTop = 50; | 44 overflow.scrollTop = 50; |
| 44 | 45 |
| 45 if (window.testRunner) | 46 runAfterDisplay(function() { |
| 46 testRunner.display(); | |
| 47 | |
| 48 window.setTimeout(function() { | |
| 49 overflow.scrollTop = 75; | 47 overflow.scrollTop = 75; |
| 50 if (window.testRunner) | 48 if (window.testRunner) |
| 51 testRunner.notifyDone(); | 49 testRunner.notifyDone(); |
| 52 }, 0) | 50 }); |
| 53 } | 51 } |
| 54 window.addEventListener('load', doTest, false); | 52 window.addEventListener('load', doTest, false); |
| 55 </script> | 53 </script> |
| 56 </head> | 54 </head> |
| 57 <body> | 55 <body> |
| 58 | 56 |
| 59 <div class="bar"></div> | 57 <div class="bar"></div> |
| 60 | 58 |
| 61 <div id="overflow"> | 59 <div id="overflow"> |
| 62 <div></div> | 60 <div></div> |
| 63 <div></div> | 61 <div></div> |
| 64 <div></div> | 62 <div></div> |
| 65 <div></div> | 63 <div></div> |
| 66 <div></div> | 64 <div></div> |
| 67 </div> | 65 </div> |
| 68 </body> | 66 </body> |
| 69 </html> | 67 </html> |
| OLD | NEW |