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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/4932260-3.html

Issue 2446893006: Convert editing/selection/4932260-[123].html to utilize w3c test harness (Closed)
Patch Set: 2016-10-28T12:57:04 Created 4 years, 1 month 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 for a bug where images would act as word boundaries.</p>
2 <div id="div" contenteditable="true">The caret should be just before the second to last word in this<img src="../resources/abe.png">sentence.</div>
3
4 <script>
5 if (window.testRunner)
6 window.testRunner.dumpEditingCallbacks();
7 var sel = window.getSelection();
8 var div = document.getElementById("div");
9 sel.collapse(div, div.childNodes.length);
10 sel.modify("move", "backward", "word");
11 sel.modify("move", "backward", "word");
12 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698