OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 2 <script src="resources/text-based-repaint.js"></script> |
3 <style> | 3 <style> |
4 div { | 4 div { |
5 display: block; | 5 display: block; |
6 width: 450px; | 6 width: 450px; |
7 height: 100px; | 7 height: 100px; |
8 color: red; | 8 color: red; |
9 } | 9 } |
10 div:hover { | 10 div:hover { |
11 color: green; | 11 color: green; |
12 text-decoration: underline; | 12 text-decoration: underline; |
13 } | 13 } |
14 </style> | 14 </style> |
15 | 15 |
16 <!-- Ensure the optimization in https://src.chromium.org/viewvc/blink?view=rev&r
evision=152046 doesn't break. --> | 16 <!-- Ensure the optimization in https://src.chromium.org/viewvc/blink?view=rev&r
evision=152046 doesn't break. --> |
17 <div id="div"> | 17 <div id="div"> |
18 This test <img src="resources/bluesquare.png" width="10px" height="10px"> passes
if <span>only</span> text is invalidated and <img src="resources/bluesquare.png
" width="10px" height="10px"> no <img src="resources/bluesquare.png" width="10px
" height="10px"> images. | 18 This test <img src="resources/bluesquare.png" width="10px" height="10px"> passes
if <span>only</span> text is invalidated and <img src="resources/bluesquare.png
" width="10px" height="10px"> no <img src="resources/bluesquare.png" width="10px
" height="10px"> images. |
19 </div> | 19 </div> |
20 | 20 |
21 <script> | 21 <script> |
22 onload = runRepaintAndPixelTest; | 22 onload = runRepaintAndPixelTest; |
23 function repaintTest() { | 23 function repaintTest() { |
24 if (window.eventSender); | 24 if (window.eventSender); |
25 eventSender.mouseMoveTo(div.offsetLeft + 5, div.offsetTop + 5); | 25 eventSender.mouseMoveTo(div.offsetLeft + 5, div.offsetTop + 5); |
26 finishRepaintTest(); | 26 finishRepaintTest(); |
27 } | 27 } |
28 </script> | 28 </script> |
OLD | NEW |