Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / 5057506-2.html
blob88601f65d6e03eaefb51779ef2178306d410f4e3
1 <p>This tests triple clicking after the last character in the last cell of a block table. The paragraph break (the space between the last character and the first character in the next paragraph) should be selected. Selection painting problems might prevent the paragraph break from appearing as selected even though it is. To test manually, triple click inside the table cell, after the last character, and hit delete. Afterward, the table should contain only 'bar'.</p>
2 <div contenteditable="true">
3 <table border="1"><tr><td width="100px"><span id="span">foo</span></td></tr></table>
4 <div id="end">bar</div>
5 </div>
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);
15 eventSender.mouseMoveTo(x, y);
16 eventSender.mouseDown();
17 eventSender.mouseUp();
18 eventSender.mouseDown();
19 eventSender.mouseUp();
20 eventSender.mouseDown();
21 eventSender.mouseUp();
23 </script>