OLD | NEW |
| 1 <!-- Based on fast/repaint/table-section-overflow.html --> |
1 <html> | 2 <html> |
2 <head> | 3 <head> |
3 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=12079</title> | 4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=12079</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 "LayoutBlockFlow DIV id='spacer'", |
| 9 "LayoutTable TABLE", |
| 10 "LayoutTableSection TBODY", |
| 11 "LayoutTableRow TR", |
| 12 "LayoutTableCell TD", |
| 13 "LayoutBlockFlow DIV", |
| 14 "LayoutBlockFlow DIV", |
| 15 ]; |
| 16 function paintInvalidationTest() |
7 { | 17 { |
8 document.getElementById("spacer").style.height = "50px"; | 18 document.getElementById("spacer").style.height = "50px"; |
9 } | 19 } |
10 </script> | 20 </script> |
11 </head> | 21 </head> |
12 <body onload="runRepaintTest()"> | 22 <body onload="runPaintInvalidationTest()"> |
13 <div id="spacer" style="width: 0;"></div> | 23 <div id="spacer" style="width: 0;"></div> |
14 <table cellpadding="0" cellspacing="0" style="margin-left: 50px;"> | 24 <table cellpadding="0" cellspacing="0" style="margin-left: 50px;"> |
15 <tr> | 25 <tr> |
16 <td> | 26 <td> |
17 <div style="width: 50px;"> | 27 <div style="width: 50px;"> |
18 <div style="background-color: green; width: 100px; height: 1
00px; margin-left: -25px;"></div> | 28 <div style="background-color: green; width: 100px; height: 1
00px; margin-left: -25px;"></div> |
19 </div> | 29 </div> |
20 </td> | 30 </td> |
21 </tr> | 31 </tr> |
22 </table> | 32 </table> |
23 </body> | 33 </body> |
24 </html> | 34 </html> |
OLD | NEW |