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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/4932260-2.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<img src="../resources/abe.png">caret sh ould be just after the second word in this sentence.</div>
3
4 <script>
5 if (window.testRunner)
6 window.testRunner.dumpEditingCallbacks();
7 if (window.internals)
8 internals.settings.setEditingBehavior('mac');
9 var sel = window.getSelection();
10 var div = document.getElementById("div");
11 sel.collapse(div, 0);
12 sel.modify("move", "forward", "word");
13 sel.modify("move", "forward", "word");
14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698