| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="resources/text-based-repaint.js"></script> | 2 <script src="resources/text-based-repaint.js"></script> |
| 3 <script> | 3 <script> |
| 4 function repaintTest() { | 4 function repaintTest() { |
| 5 document.getElementsByTagName('span')[0].style.color = 'green'; | 5 document.getElementsByTagName('span')[0].style.color = 'green'; |
| 6 } | 6 } |
| 7 onload = function() { | 7 onload = function() { |
| 8 window.scrollTo(200, 200); | 8 window.scrollTo(200, 200); |
| 9 runRepaintTest(); | 9 runRepaintAndPixelTest(); |
| 10 } | 10 } |
| 11 </script> | 11 </script> |
| 12 <style> | 12 <style> |
| 13 body { | 13 body { |
| 14 margin: 0; | 14 margin: 0; |
| 15 width: 2000px; | 15 width: 2000px; |
| 16 height: 2000px; | 16 height: 2000px; |
| 17 } | 17 } |
| 18 span { | 18 span { |
| 19 color: red; | 19 color: red; |
| 20 } | 20 } |
| 21 </style> | 21 </style> |
| 22 Tests if inline element in scrolled view is correctly repainted on style change. | 22 Tests if inline element in scrolled view is correctly repainted on style change. |
| 23 Passes if the text below is fully green; | 23 Passes if the text below is fully green; |
| 24 <div> | 24 <div> |
| 25 <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> | 25 <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> |
| 26 <span>Text Text Text Text Text Text Text Text Text Text Text Text Text</span> | 26 <span>Text Text Text Text Text Text Text Text Text Text Text Text Text</span> |
| 27 </div> | 27 </div> |
| OLD | NEW |