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

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

Powered by Google App Engine
This is Rietveld 408576698