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

Side by Side Diff: LayoutTests/fast/table/border-collapsing/cached-69296.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 Test for bug69296. 2 Test for bug69296.
3 Collapsed borders should not disappear. 3 Collapsed borders should not disappear.
4 --> 4 -->
5 <html> 5 <html>
6 <head> 6 <head>
7 <script src="../../../resources/run-after-display.js"></script>
7 <style> 8 <style>
8 BODY { 9 BODY {
9 margin: 20px; 10 margin: 20px;
10 } 11 }
11 TABLE { 12 TABLE {
12 border-collapse: collapse; 13 border-collapse: collapse;
13 } 14 }
14 TD { 15 TD {
15 width: 50px; 16 width: 50px;
16 height: 50px; 17 height: 50px;
17 border: 1px solid #333333; 18 border: 1px solid #333333;
18 } 19 }
19 #row1:hover { 20 #row1:hover {
20 background-color: #ddd; 21 background-color: #ddd;
21 color: #111; 22 color: #111;
22 } 23 }
23 </style> 24 </style>
24 <head> 25 <head>
25 <script type="text/javascript"> 26 <script type="text/javascript">
26 function test() { 27 function test() {
27 document.body.offsetTop; 28 if (window.eventSender && window.testRunner) {
28 if (window.testRunner) { 29 testRunner.waitUntilDone();
29 testRunner.display(); 30 runAfterDisplay(function() {
30 } 31 row = document.getElementById('row1');
31 if (window.eventSender) { 32 rowRect = row.getBoundingClientRect();
32 row = document.getElementById('row1'); 33 x = rowRect.left + 75;
33 rowRect = row.getBoundingClientRect(); 34 y = rowRect.top;
34 x = rowRect.left + 75; 35 eventSender.mouseMoveTo(x, y + 1);
35 y = rowRect.top; 36 eventSender.mouseMoveTo(x, y - 1);
36 eventSender.mouseMoveTo(x, y + 1); 37 document.body.offsetTop;
37 eventSender.mouseMoveTo(x, y - 1); 38 testRunner.notifyDone();
38 document.body.offsetTop; 39 });
39 } 40 }
40 } 41 }
41 </script> 42 </script>
42 </head> 43 </head>
43 <body onload="test()"> 44 <body onload="test()">
44 <table> 45 <table>
45 <tr id="row1"> 46 <tr id="row1">
46 <td valign="top"/> 47 <td valign="top"/>
47 <td/> 48 <td/>
48 <td> 49 <td>
49 <div> 50 <div>
50 <div style="width: 20px; height: 20px; background: lime; "/> 51 <div style="width: 20px; height: 20px; background: lime; "/>
51 </div> 52 </div>
52 </td> 53 </td>
53 </tr> 54 </tr>
54 <tr id="row2"> 55 <tr id="row2">
55 <td/> 56 <td/>
56 <td/> 57 <td/>
57 <td/> 58 <td/>
58 </tr> 59 </tr>
59 </table> 60 </table>
60 </body> 61 </body>
61 </html> 62 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/table/border-collapsing/cached-cell-append.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698