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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/cached-change-table-border-color.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/table/border-collapsing/cached-change-table-border-color.html -->
1 <!-- 2 <!--
2 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.
3 Here we change table border color, expect that cache is invalidated and paint pr oduces expected image. 4 Here we change table border color, expect that cache is invalidated and paint pr oduces expected image.
4 --> 5 -->
5 <html> 6 <html>
6 <head> 7 <head>
7 <title></title> 8 <title></title>
8 <link rel="stylesheet" href="resources/cached.css"> 9 <link rel="stylesheet" href="../../../fast/table/border-collapsing/resou rces/cached.css">
9 <script src="../../../fast/repaint/resources/text-based-repaint.js"></sc ript> 10 <script src="resources/paint-invalidation-test.js"></script>
10 <script type="text/javascript"> 11 <script type="text/javascript">
11 function repaintTest() { 12 window.expectedPaintInvalidationObjects = [
13 "LayoutTableCell TD",
14 "LayoutTable TABLE id='tbl'",
15 ];
16 function paintInvalidationTest() {
12 document.getElementById("tbl").style.borderColor = "yellow"; 17 document.getElementById("tbl").style.borderColor = "yellow";
13 } 18 }
14 </script> 19 </script>
15 </head> 20 </head>
16 <body onload="runRepaintTest()"> 21 <body onload="runPaintInvalidationTest()">
17 <table style="border-collapse:collapse; border:4px solid blue" id="tbl"> 22 <table style="border-collapse:collapse; border:4px solid blue" id="tbl">
18 <tr> 23 <tr>
19 <td style="border:2px solid lime"/> 24 <td style="border:2px solid lime"/>
20 </tr> 25 </tr>
21 </table> 26 </table>
22 </body> 27 </body>
23 </html> 28 </html>
24 29
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698