OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title>Simple Table Painting</title> | 3 <title>Simple Table Painting</title> |
4 <style> | 4 <style> |
5 table.testtable { border: 1px solid black; border-collapse:collapse; backg
round-color: green; } | 5 table.testtable { border: 1px solid black; border-collapse:collapse; backg
round-color: green; } |
6 table.testtable td { border: 1px solid black; font-size: 20px; background
-color: green; width:60px; height:60px; direction:rtl;} | 6 table.testtable td { border: 1px solid black; font-size: 20px; background
-color: green; width:60px; height:60px; direction:rtl;} |
7 body { margin: 0px; } | 7 body { margin: 0px; } |
8 </style> | 8 </style> |
9 <script> | 9 <script> |
10 if (window.testRunner) { | 10 if (window.testRunner) { |
11 window.testRunner.waitUntilDone(); | 11 window.testRunner.waitUntilDone(); |
12 } | 12 } |
13 function repaintTest() { | 13 function repaintTest() { |
14 var testCell = document.getElementById("testcell"); | 14 var testCell = document.getElementById("testcell"); |
15 var offset = document.body.offsetTop; | 15 var offset = document.body.offsetTop; |
16 testCell.style.backgroundColor = "green"; | 16 testCell.style.backgroundColor = "green"; |
17 if (window.testRunner) { | 17 if (window.testRunner) { |
18 window.testRunner.notifyDone(); | 18 window.testRunner.notifyDone(); |
19 } | 19 } |
20 } | 20 } |
21 </script> | 21 </script> |
22 <script type="text/javascript" src="../repaint/resources/repaint.js"></scrip
t> | 22 <script type="text/javascript" src="../../resources/run-after-display.js"></
script> |
23 </head> | 23 </head> |
24 <body onload="runRepaintTest()"> | 24 <body onload="runAfterDisplay(repaintTest);"> |
25 <table class="testtable"> | 25 <table class="testtable"> |
26 <tr> | 26 <tr> |
27 <td></td> | 27 <td></td> |
28 <td></td> | 28 <td></td> |
29 <td></td> | 29 <td></td> |
30 <td></td> | 30 <td></td> |
31 <td></td> | 31 <td></td> |
32 </tr> | 32 </tr> |
33 <tr> | 33 <tr> |
34 <td></td> | 34 <td></td> |
(...skipping 22 matching lines...) Expand all Loading... |
57 <td></td> | 57 <td></td> |
58 <td></td> | 58 <td></td> |
59 <td></td> | 59 <td></td> |
60 </tr> | 60 </tr> |
61 </table> | 61 </table> |
62 <script> | 62 <script> |
63 | 63 |
64 </script> | 64 </script> |
65 </body> | 65 </body> |
66 </html> | 66 </html> |
OLD | NEW |