| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 3 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> |
| 4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
| 5 function repaintTest() | 5 function repaintTest() |
| 6 { | 6 { |
| 7 document.getElementById("t").lastChild.data='Passed Test'; | 7 document.getElementById("t").lastChild.data='Passed Test'; |
| 8 } | 8 } |
| 9 </script> | 9 </script> |
| 10 </head> | 10 </head> |
| 11 <body onload="runRepaintTest();"> | 11 <body onload="runRepaintAndPixelTest();"> |
| 12 <p> | 12 <p> |
| 13 This is a repaint test for <i><a href="http://bugs.webkit.org/show_bug.cgi?i
d=11277">http://bugs.webkit.org/show_bug.cgi?id=11277</a> | 13 This is a repaint test for <i><a href="http://bugs.webkit.org/show_bug.cgi?i
d=11277">http://bugs.webkit.org/show_bug.cgi?id=11277</a> |
| 14 REGRESSION: Incomplete repaint of overflow areas when deleting</i>. | 14 REGRESSION: Incomplete repaint of overflow areas when deleting</i>. |
| 15 | 15 |
| 16 This shows that the repaint rect doesn't account for scrolling. You can | 16 This shows that the repaint rect doesn't account for scrolling. You can |
| 17 use Quartz Debug to see that changing the text repaints a rect where the tex
t would have been | 17 use Quartz Debug to see that changing the text repaints a rect where the tex
t would have been |
| 18 if it hadn't been scrolled. | 18 if it hadn't been scrolled. |
| 19 </p> | 19 </p> |
| 20 <div id="t" style="overflow-y: scroll; outline: none; width: 80px; height: 69px;
"> | 20 <div id="t" style="overflow-y: scroll; outline: none; width: 80px; height: 69px;
"> |
| 21 <br><br><br><br><br><br><br><br><br>Failed Test | 21 <br><br><br><br><br><br><br><br><br>Failed Test |
| 22 </div> | 22 </div> |
| 23 <script> | 23 <script> |
| 24 document.getElementById("t").scrollTop = 128; | 24 document.getElementById("t").scrollTop = 128; |
| 25 </script> | 25 </script> |
| 26 </body> | 26 </body> |
| 27 </html> | 27 </html> |
| OLD | NEW |