| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <table width="100%"> | 2 <table width="100%"> |
| 3 <tr> | 3 <tr> |
| 4 <td id="firstCell">First cell</td> | 4 <td id="firstCell">First cell</td> |
| 5 </tr> | 5 </tr> |
| 6 <tr> | 6 <tr> |
| 7 <td id="secondCell">Second cell</td> | 7 <td id="secondCell">Second cell</td> |
| 8 </tr> | 8 </tr> |
| 9 </table> | 9 </table> |
| 10 <script src="../../resources/run-after-layout-and-paint.js" type="text/javascrip
t"></script> | 10 <script src="../../resources/run-after-layout-and-paint.js" type="text/javascrip
t"></script> |
| 11 <script src="resources/text-based-repaint.js" type="text/javascript"></script> | 11 <script src="resources/text-based-repaint.js" type="text/javascript"></script> |
| 12 <script> | 12 <script> |
| 13 window.testIsAsync = true; | 13 window.testIsAsync = true; |
| 14 if (window.testRunner) | 14 if (window.testRunner) |
| 15 testRunner.waitUntilDone(); | 15 testRunner.waitUntilDone(); |
| 16 | 16 |
| 17 document.execCommand("selectAll"); | 17 document.execCommand("selectAll"); |
| 18 | 18 |
| 19 function repaintTest() { | 19 function repaintTest() { |
| 20 var selection = window.getSelection(); | 20 var selection = window.getSelection(); |
| 21 var firstCell = document.getElementById("firstCell"); | 21 var firstCell = document.getElementById("firstCell"); |
| 22 selection.setBaseAndExtent(firstCell, 0, firstCell, 1); | 22 selection.setBaseAndExtent(firstCell, 0, firstCell, 1); |
| 23 finishRepaintTest(); | 23 finishRepaintTest(); |
| 24 } | 24 } |
| 25 runAfterLayoutAndPaint(runRepaintTest); | 25 runAfterLayoutAndPaint(runRepaintAndPixelTest); |
| 26 </script> | 26 </script> |
| OLD | NEW |