| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 body { | 4 body { |
| 5 height: 1000px; | 5 height: 1000px; |
| 6 } | 6 } |
| 7 #redbox { | 7 #redbox { |
| 8 background-color: red; | 8 background-color: red; |
| 9 position: absolute; | 9 position: absolute; |
| 10 top: 50px; | 10 top: 50px; |
| 11 left: 50px; | 11 left: 50px; |
| 12 height: 50px; | 12 height: 50px; |
| 13 width: 50px; | 13 width: 50px; |
| 14 } | 14 } |
| 15 #greenbox { | 15 #greenbox { |
| 16 background-color: green; | 16 background-color: green; |
| 17 position: absolute; | 17 position: absolute; |
| 18 top: 450px; | 18 top: 450px; |
| 19 left: 50px; | 19 left: 50px; |
| 20 height: 50px; | 20 height: 50px; |
| 21 width: 50px; | 21 width: 50px; |
| 22 } | 22 } |
| 23 </style> | 23 </style> |
| 24 <script> | 24 <script> |
| 25 if (window.internals) | 25 if (window.internals) |
| 26 window.internals.settings.setMockScrollbarsEnabled(true); | 26 window.internals.settings.setMockScrollbarsEnabled(true); |
| 27 if (window.testRunner) { | 27 if (window.testRunner) { |
| 28 testRunner.dumpAsText(true); | 28 testRunner.dumpAsTextWithPixelResults(); |
| 29 testRunner.waitUntilDone(); | 29 testRunner.waitUntilDone(); |
| 30 } | 30 } |
| 31 | 31 |
| 32 function doTest() | 32 function doTest() |
| 33 { | 33 { |
| 34 if (window.testRunner) | 34 if (window.testRunner) |
| 35 testRunner.display(); | 35 testRunner.display(); |
| 36 // Scroll red box off screen and scroll green box into same place. | 36 // Scroll red box off screen and scroll green box into same place. |
| 37 window.scrollTo(0, 400); | 37 window.scrollTo(0, 400); |
| 38 if (window.testRunner) | 38 if (window.testRunner) |
| 39 testRunner.notifyDone(); | 39 testRunner.notifyDone(); |
| 40 } | 40 } |
| 41 | 41 |
| 42 window.addEventListener('load', doTest, false); | 42 window.addEventListener('load', doTest, false); |
| 43 </script> | 43 </script> |
| 44 </head> | 44 </head> |
| 45 <body> | 45 <body> |
| 46 <div id="redbox"></div> | 46 <div id="redbox"></div> |
| 47 <div id="greenbox"></div> | 47 <div id="greenbox"></div> |
| 48 </body> | 48 </body> |
| 49 </html> | 49 </html> |
| OLD | NEW |