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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/table/border-collapsing/cached-change-tbody-border-width.html

Issue 2005553002: Convert collapsed border repaint tests to reftests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 <!-- 1 <!--
2 Calculating collapsed borders for big tables is expensive, so we cache them and recalculate when needed. 2 Calculating collapsed borders for big tables is expensive, so we cache them and recalculate when needed.
3 Here we change tbody border width, expect that cache is invalidated and paint pr oduces expected image. 3 Here we change tbody border width, expect that cache is invalidated and paint pr oduces expected image.
4 --> 4 -->
5 <html> 5 <html>
6 <head> 6 <head>
7 <title></title> 7 <title></title>
8 <link rel="stylesheet" href="resources/cached.css"> 8 <link rel="stylesheet" href="resources/cached.css">
9 <script src="../../../fast/repaint/resources/text-based-repaint.js"></sc ript> 9 <script src="../../../fast/repaint/resources/text-based-repaint.js"></sc ript>
10 <script type="text/javascript"> 10 <script type="text/javascript">
11 function repaintTest() { 11 function repaintTest() {
12 document.getElementById("tbody").style.borderWidth = "4px"; 12 document.getElementById("tbody").style.borderWidth = "4px";
13 } 13 }
14 </script> 14 </script>
15 </head> 15 </head>
16 <body onload="runRepaintTest()"> 16 <body onload="runRepaintAndPixelTest()">
17 <table style="border-collapse:collapse; border:1px solid blue"> 17 <table style="border-collapse:collapse; border:1px solid blue">
18 <tbody style="border:1px solid yellow" id="tbody"> 18 <tbody style="border:1px solid yellow" id="tbody">
19 <tr> 19 <tr>
20 <td style="border:2px solid lime"/> 20 <td style="border:2px solid lime"/>
21 <td/> 21 <td/>
22 </tr> 22 </tr>
23 <tr> 23 <tr>
24 <td/> 24 <td/>
25 <td/> 25 <td/>
26 </tr> 26 </tr>
27 </tbody> 27 </tbody>
28 <tbody> 28 <tbody>
29 <tr> 29 <tr>
30 <td/> 30 <td/>
31 <td/> 31 <td/>
32 </tr> 32 </tr>
33 </tbody> 33 </tbody>
34 </table> 34 </table>
35 </body> 35 </body>
36 </html> 36 </html>
37 37
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698