| OLD | NEW |
| 1 <!-- Based on fast/table/border-collapsing/cached-69296.html --> | 1 <!-- Based on fast/table/border-collapsing/cached-69296.html --> |
| 2 <!-- | 2 <!-- |
| 3 Test for bug69296. | 3 Test for bug69296. |
| 4 Collapsed borders should not disappear. | 4 Collapsed borders should not disappear. |
| 5 --> | 5 --> |
| 6 <html> | 6 <html> |
| 7 <head> | 7 <head> |
| 8 <script src="resources/paint-invalidation-test.js"></script> | 8 <script src="resources/paint-invalidation-test.js"></script> |
| 9 <style> | 9 <style> |
| 10 BODY { | 10 BODY { |
| 11 margin: 20px; | 11 margin: 20px; |
| 12 } | 12 } |
| 13 TABLE { | 13 TABLE { |
| 14 border-collapse: collapse; | 14 border-collapse: collapse; |
| 15 } | 15 } |
| 16 TD { | 16 TD { |
| 17 width: 50px; | 17 width: 50px; |
| 18 height: 50px; | 18 height: 50px; |
| 19 border: 1px solid #333333; | 19 border: 1px solid #333333; |
| 20 } | 20 } |
| 21 #row1:hover { | 21 #row1:hover { |
| 22 background-color: #ddd; | 22 background-color: #ddd; |
| 23 color: #111; | 23 color: #111; |
| 24 } | 24 } |
| 25 </style> | 25 </style> |
| 26 <head> | 26 <head> |
| 27 <script type="text/javascript"> | 27 <script type="text/javascript"> |
| 28 window.expectedPaintInvalidationObjects = [ | |
| 29 "LayoutTableCell TD", | |
| 30 "LayoutTableCell TD", | |
| 31 "LayoutTableCell TD", | |
| 32 "LayoutTableRow TR id='row1'", | |
| 33 "LayoutTableCell TD", | |
| 34 "LayoutTableCell TD", | |
| 35 "LayoutTableCell TD", | |
| 36 "LayoutTableCell TD", | |
| 37 "LayoutTableCell TD", | |
| 38 "LayoutTableCell TD", | |
| 39 "LayoutTableRow TR id='row1'", | |
| 40 "LayoutTableCell TD", | |
| 41 "LayoutTableCell TD", | |
| 42 "LayoutTableCell TD", | |
| 43 ]; | |
| 44 function paintInvalidationTest() { | 28 function paintInvalidationTest() { |
| 45 row = document.getElementById('row1'); | 29 row = document.getElementById('row1'); |
| 46 rowRect = row.getBoundingClientRect(); | 30 rowRect = row.getBoundingClientRect(); |
| 47 x = rowRect.left + 75; | 31 x = rowRect.left + 75; |
| 48 y = rowRect.top; | 32 y = rowRect.top; |
| 49 document.body.offsetTop; | 33 document.body.offsetTop; |
| 50 if (window.eventSender) { | 34 if (window.eventSender) { |
| 51 eventSender.mouseMoveTo(x, y + 1); | 35 eventSender.mouseMoveTo(x, y + 1); |
| 52 eventSender.mouseMoveTo(x, y - 1); | 36 eventSender.mouseMoveTo(x, y - 1); |
| 53 } | 37 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 66 </td> | 50 </td> |
| 67 </tr> | 51 </tr> |
| 68 <tr id="row2"> | 52 <tr id="row2"> |
| 69 <td/> | 53 <td/> |
| 70 <td/> | 54 <td/> |
| 71 <td/> | 55 <td/> |
| 72 </tr> | 56 </tr> |
| 73 </table> | 57 </table> |
| 74 </body> | 58 </body> |
| 75 </html> | 59 </html> |
| OLD | NEW |