| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <title></title> | 3 <title></title> |
| 4 <link rel="stylesheet" href="resources/default.css"></style> | 4 <link rel="stylesheet" href="resources/default.css"></style> |
| 5 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 5 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> |
| 6 <script type="text/javascript"> | 6 <script type="text/javascript"> |
| 7 if (window.testRunner) | 7 if (window.testRunner) |
| 8 testRunner.dumpAsTextWithPixelResults(); | 8 testRunner.dumpAsTextWithPixelResults(); |
| 9 | 9 |
| 10 window.onload = function() { | 10 window.onload = function() { |
| 11 window.scrollTo(1000, 1000); | 11 window.scrollTo(1000, 1000); |
| 12 runRepaintTest(); | 12 runRepaintAndPixelTest(); |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 function repaintTest() | 15 function repaintTest() |
| 16 { | 16 { |
| 17 var moveMeElement = document.getElementById('moveMe'); | 17 var moveMeElement = document.getElementById('moveMe'); |
| 18 moveMeElement.style.visibility = "visible"; | 18 moveMeElement.style.visibility = "visible"; |
| 19 moveMeElement.scrollTop = 100; | 19 moveMeElement.scrollTop = 100; |
| 20 moveMeElement.scrollLeft = 150; | 20 moveMeElement.scrollLeft = 150; |
| 21 } | 21 } |
| 22 </script> | 22 </script> |
| 23 </head> | 23 </head> |
| 24 <body style="height:2000px;"> | 24 <body style="height:2000px;"> |
| 25 <!-- You should see 1 green rectangle in the output and no red. --> | 25 <!-- You should see 1 green rectangle in the output and no red. --> |
| 26 <div id="moveMe" style="top: 150px; left: 100px; visibility: hidden" class="
fixed clipped"><div class="absolute green" style="top: 100px; left: 150px;"></di
v></div> | 26 <div id="moveMe" style="top: 150px; left: 100px; visibility: hidden" class="
fixed clipped"><div class="absolute green" style="top: 100px; left: 150px;"></di
v></div> |
| 27 <!-- Make sure we are scrolled --> | 27 <!-- Make sure we are scrolled --> |
| 28 <div style="top: 0px; left: 0px;" class="absolute red"></div> | 28 <div style="top: 0px; left: 0px;" class="absolute red"></div> |
| 29 </body> | 29 </body> |
| 30 </html> | 30 </html> |
| OLD | NEW |