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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/hover-pseudo-borders-whitespace.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 <!-- Based on fast/repaint/hover-pseudo-borders-whitespace.html -->
1 <!doctype html> 2 <!doctype html>
2 <style> 3 <style>
3 4
4 div { 5 div {
5 width: 100px; 6 width: 100px;
6 height: 100px; 7 height: 100px;
7 } 8 }
8 9
9 #div_border { 10 #div_border {
10 border: 10px solid; 11 border: 10px solid;
11 } 12 }
12 13
13 #div_outline { 14 #div_outline {
14 outline: 10px solid; 15 outline: 10px solid;
15 margin: 20px 0 0 10px; 16 margin: 20px 0 0 10px;
16 } 17 }
17 18
18 #div_border:hover, #div_border:hover + #div_outline { 19 #div_border:hover, #div_border:hover + #div_outline {
19 color: green; 20 color: green;
20 } 21 }
21 22
22 </style> 23 </style>
23 <script src="resources/text-based-repaint.js"></script> 24 <script src="resources/paint-invalidation-test.js"></script>
24 <script> 25 <script>
25 function repaintTest() { 26 window.expectedPaintInvalidationObjects = [
27 "LayoutBlockFlow DIV id='div_border'",
28 "LayoutBlockFlow DIV id='div_outline'",
29 ];
30 function paintInvalidationTest() {
26 if (!window.testRunner) 31 if (!window.testRunner)
27 return; 32 return;
28 eventSender.mouseMoveTo(50, 50); 33 eventSender.mouseMoveTo(50, 50);
29 } 34 }
30 window.addEventListener("load", runRepaintTest); 35 window.addEventListener("load", runPaintInvalidationTest);
31 </script> 36 </script>
32 <div id="div_border"></div> 37 <div id="div_border"></div>
33 <div id="div_outline"></div> 38 <div id="div_outline"></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698