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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/5234383-1.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/selection/5234383-2.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <p>This tests moving forward by sentence boundaries. The caret should be at the start of the third 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, 5);
10 sel.modify("move", "forward", "sentenceBoundary");
11 sel.modify("move", "forward", "sentenceBoundary");
12 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/selection/5234383-2.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698