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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/cached-cell-append.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-cell-append.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 append new cell, expect that cache is invalidated and paint produces exp ected image. 4 Here we append new cell, expect that cache is invalidated and paint produces exp ected 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 "LayoutTableCell TD",
15 "LayoutTable TABLE",
16 "LayoutTableCell TD",
17 ];
18 function paintInvalidationTest() {
12 newCell = document.createElement("td"); 19 newCell = document.createElement("td");
13 newCell.style.borderLeftWidth = "6px"; 20 newCell.style.borderLeftWidth = "6px";
14 newCell.style.borderLeftStyle = "solid"; 21 newCell.style.borderLeftStyle = "solid";
15 newCell.style.borderLeftColor = "yellow"; 22 newCell.style.borderLeftColor = "yellow";
16 document.getElementById("row").appendChild(newCell); 23 document.getElementById("row").appendChild(newCell);
17 } 24 }
18 </script> 25 </script>
19 </head> 26 </head>
20 <body onload="runRepaintTest()"> 27 <body onload="runPaintInvalidationTest()">
21 <table style="border-collapse:collapse; border:2px solid blue"> 28 <table style="border-collapse:collapse; border:2px solid blue">
22 <tr id="row"> 29 <tr id="row">
23 <td style="border:4px solid lime"/> 30 <td style="border:4px solid lime"/>
24 </tr> 31 </tr>
25 </table> 32 </table>
26 </body> 33 </body>
27 </html> 34 </html>
28 35
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698