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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/cached-change-cell-border-color.html

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 <!-- Based on fast/table/border-collapsing/cached-change-cell-border-color.html --> 1 <!-- Based on fast/table/border-collapsing/cached-change-cell-border-color.html -->
2 <!-- 2 <!--
3 Calculating collapsed borders for big tables is expensive, so we cache them and recalculate when needed. 3 Calculating collapsed borders for big tables is expensive, so we cache them and recalculate when needed.
4 Here we change cell border color, expect that cache is invalidated and paint pro duces expected image. 4 Here we change cell border color, expect that cache is invalidated and paint pro duces expected image.
5 --> 5 -->
6 <html> 6 <html>
7 <head> 7 <head>
8 <title></title> 8 <title></title>
9 <link rel="stylesheet" href="../../../fast/table/border-collapsing/resou rces/cached.css"> 9 <link rel="stylesheet" href="../../../fast/table/border-collapsing/resou rces/cached.css">
10 <script src="resources/paint-invalidation-test.js"></script> 10 <script src="resources/paint-invalidation-test.js"></script>
11 <script type="text/javascript"> 11 <script type="text/javascript">
12 window.expectedPaintInvalidationObjects = [
13 "LayoutTableCell TD id='foo'",
14 "LayoutTableCell TD",
15 "LayoutTableCell TD id='foo'",
16 ];
17 function paintInvalidationTest() { 12 function paintInvalidationTest() {
18 document.getElementById("foo").style.borderColor = "lime"; 13 document.getElementById("foo").style.borderColor = "lime";
19 } 14 }
20 </script> 15 </script>
21 </head> 16 </head>
22 <body onload="runPaintInvalidationTest()"> 17 <body onload="runPaintInvalidationTest()">
23 <table style="border-collapse:collapse; border:2px solid blue"> 18 <table style="border-collapse:collapse; border:2px solid blue">
24 <tr> 19 <tr>
25 <td style="border:4px solid pink" id="foo"/> 20 <td style="border:4px solid pink" id="foo"/>
26 <td style="border:1px solid black"/> 21 <td style="border:1px solid black"/>
27 </tr> 22 </tr>
28 </table> 23 </table>
29 </body> 24 </body>
30 </html> 25 </html>
31 26
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698