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

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

Issue 2740953004: Remove LayoutTests that test the now unsupported user-select: ignore (Closed)
Patch Set: Created 3 years, 9 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 to see that clicking on content outside of an editable region with -webkit-user-select: ignore doesn't remove the selection from the editable regi on. To run it manually, click on the button. The editable region should not be focused, but the text inside of it should be selected.</p>
2 <input id="button" type="button" style="-webkit-user-select: ignore;" value="Cli ck on me">
3 <div id="div" contenteditable="true">This text should be selected.</div>
4
5 <script>
6 div = document.getElementById("div");
7 sel = window.getSelection();
8 sel.collapse(div, 0);
9 document.execCommand("SelectAll");
10 if (window.testRunner) {
11 button = document.getElementById("button");
12 x = button.offsetParent.offsetLeft + button.offsetLeft + button.offsetWidth / 2;
13 y = button.offsetParent.offsetTop + button.offsetTop + button.offsetHeight / 2;
14 eventSender.mouseMoveTo(x, y);
15 eventSender.mouseDown();
16 eventSender.mouseUp();
17 }
18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698