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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/5234383-2.html

Issue 2184473006: Convert editing/selection/5234383-[12].html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-27T13:42:56 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 moving backward by sentence boundaries. The caret should be at th e start of the second to last sentence.</p>
2
3 <div id="div" contenteditable="true">Lorem ipsum dolor sit amet, consectetuer ad ipiscing elit. Nunc a augue. Pellentesque habitant morbi tristique senectus et n etus et malesuada fames ac turpis egestas. Mauris ut pede. Integer lacus. Ut ips um. Phasellus tristique leo eu velit. Vestibulum arcu lacus, blandit ac, condime ntum sed, commodo in, arcu. Curabitur suscipit pede eu sem.</div>
4
5 <script>
6 var sel = window.getSelection();
7 var div = document.getElementById("div");
8 var text = div.firstChild;
9 sel.collapse(text, text.length - 5);
10 sel.modify("move", "backward", "sentenceBoundary");
11 sel.modify("move", "backward", "sentenceBoundary");
12 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698