4 <td id=
"firstCell">First cell
</td>
7 <td id=
"secondCell">Second cell
</td>
10 <script src=
"../../resources/run-after-layout-and-paint.js" type=
"text/javascript"></script>
11 <script src=
"resources/text-based-repaint.js" type=
"text/javascript"></script>
13 window
.testIsAsync
= true;
14 if (window
.testRunner
)
15 testRunner
.waitUntilDone();
17 document
.execCommand("selectAll");
19 function repaintTest() {
20 var selection
= window
.getSelection();
21 var firstCell
= document
.getElementById("firstCell");
22 selection
.setBaseAndExtent(firstCell
, 0, firstCell
, 1);
25 runAfterLayoutAndPaint(runRepaintTest
);