Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/non-text-link-invalidation-optimization.html

Issue 2321183002: Move repaint tests (except for svg/) to paint/invalidation (Closed)
Patch Set: - Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698