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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/inserting/multiple-lines-selected.html

Issue 2286263002: Convert editing/inserting/multiple-lines-selected.html to use w3c test harness (Closed)
Patch Set: 2016-08-29T18:14:14 Created 4 years, 3 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/platform/linux/editing/inserting/multiple-lines-selected-expected.png » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script>
5 <div id="log"></div>
1 <script> 6 <script>
2 if (window.testRunner) 7 test(() => assert_selection(
3 testRunner.dumpEditingCallbacks(); 8 '<div contenteditable><div>f^oo</div><div>b|ar</div></div>',
9 'insertParagraph',
10 '<div contenteditable><div>f</div><div>|ar</div></div>'),
11 'Insert a paragraph separator into a selection that spans multiple paragraph s');
4 </script> 12 </script>
5 <p>This tests inserting a paragraph separator into a selection that spans multip le paragraphs. 'ar' should be on the line after 'f' and the caret should be jus t before the 'a'.</p>
6 <div id="test" contenteditable="true"><div>foo</div><div>bar</div></div>
7
8 <script>
9 var s = window.getSelection();
10 var e = document.getElementById("test");
11
12 s.collapse(e, 0);
13 s.modify("move", "forward", "character");
14 s.modify("extend", "forward", "line");
15
16 document.execCommand("InsertParagraph");
17
18 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/inserting/multiple-lines-selected-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698