Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/5057506.html

Issue 2178193004: Convert editing/selection/5057506.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-26T18:38:20 Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698