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

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

Issue 196573021: Remove testRunner.display calls from table border collapsing tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 <!-- 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 colgroup border width, expect that cache is invalidated and paint produces expected image. 3 Here we change colgroup border width, expect that cache is invalidated and paint produces 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="../../../resources/run-after-display.js"></script>
9 <script type="text/javascript"> 10 <script type="text/javascript">
10 function test() { 11 function test() {
11 document.body.offsetTop;
12 if (window.testRunner) 12 if (window.testRunner)
13 testRunner.display(); 13 testRunner.waitUntilDone();
14 document.getElementById("colgroup").style.borderWidth = "4px"; 14 runAfterDisplay(function() {
15 document.getElementById("colgroup").style.borderWidth = "4px ";
16 if (window.testRunner)
17 testRunner.notifyDone();
18 });
15 } 19 }
16 </script> 20 </script>
17 </head> 21 </head>
18 <body onload="test()"> 22 <body onload="test()">
19 <table style="border-collapse:collapse; border:1px solid blue"> 23 <table style="border-collapse:collapse; border:1px solid blue">
20 <colgroup style="border:1px solid yellow" id="colgroup"> 24 <colgroup style="border:1px solid yellow" id="colgroup">
21 <col> 25 <col>
22 <col> 26 <col>
23 </colgroup> 27 </colgroup>
24 <colgroup> 28 <colgroup>
25 <col> 29 <col>
26 </colgroup> 30 </colgroup>
27 <tbody> 31 <tbody>
28 <tr> 32 <tr>
29 <td style="border:2px solid lime"/> 33 <td style="border:2px solid lime"/>
30 <td/> 34 <td/>
31 <td/> 35 <td/>
32 </tr> 36 </tr>
33 <tr> 37 <tr>
34 <td/> 38 <td/>
35 <td/> 39 <td/>
36 <td/> 40 <td/>
37 </tr> 41 </tr>
38 </tbody> 42 </tbody>
39 </table> 43 </table>
40 </body> 44 </body>
41 </html> 45 </html>
42 46
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698