| OLD | NEW |
| (Empty) |
| 1 <p>This tests double clicking after the last character in the last cell of a blo
ck table. The paragraph break (the space between the last character and the fir
st character in the next paragraph) should be selected. Selection painting prob
lems might prevent the paragraph break from appearing as selected even though it
is. To test manually, double click inside the table cell, after the last chara
cter, and hit delete. Afterward, the table should contain 'foobar'.</p> | |
| 2 <div contenteditable="true"> | |
| 3 <table border="1"><tr><td width="100px"><span id="span">foo</span></td></tr></ta
ble> | |
| 4 <div id="end">bar</div> | |
| 5 </div> | |
| 6 | |
| 7 <script> | |
| 8 if (window.testRunner) { | |
| 9 span = document.getElementById("span"); | |
| 10 x = span.offsetParent.offsetLeft + span.offsetLeft + span.offsetWidth + 10; | |
| 11 y = span.offsetParent.offsetParent.offsetTop + span.offsetParent.offsetTop +
span.offsetTop + span.offsetHeight / 2; | |
| 12 alert(x); | |
| 13 alert(y); | |
| 14 | |
| 15 eventSender.mouseMoveTo(x, y); | |
| 16 eventSender.mouseDown(); | |
| 17 eventSender.mouseUp(); | |
| 18 eventSender.mouseDown(); | |
| 19 eventSender.mouseUp(); | |
| 20 } | |
| 21 </script> | |
| OLD | NEW |