OLD | NEW |
| 1 <!-- Based on fast/repaint/table-col-background.html --> |
1 <html> | 2 <html> |
2 <head> | 3 <head> |
3 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=5821</title> | 4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=5821</title> |
4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 5 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> |
5 <script type="text/javascript"> | 6 <script type="text/javascript"> |
6 function repaintTest() | 7 window.expectedPaintInvalidationObjects = [ |
| 8 "LayoutTableCell TD", |
| 9 "LayoutTableCol COL id='col'", |
| 10 ]; |
| 11 function paintInvalidationTest() |
7 { | 12 { |
8 document.getElementById("col").style.backgroundColor = "green"; | 13 document.getElementById("col").style.backgroundColor = "green"; |
9 } | 14 } |
10 </script> | 15 </script> |
11 </head> | 16 </head> |
12 <body onload="runRepaintTest()"> | 17 <body onload="runPaintInvalidationTest()"> |
13 <table> | 18 <table> |
14 <col id="col" style="background-color: red;"> | 19 <col id="col" style="background-color: red;"> |
15 <tr> | 20 <tr> |
16 <td style="width: 100px; height: 100px;"> | 21 <td style="width: 100px; height: 100px;"> |
17 </td> | 22 </td> |
18 </tr> | 23 </tr> |
19 </table> | 24 </table> |
20 </body> | 25 </body> |
21 </html> | 26 </html> |
OLD | NEW |