Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / multiple-lines-selected.html
blob38574b5186059d69aceb161fe19b5f9a36879109
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests inserting a paragraph separator into a selection that spans multiple paragraphs. 'ar' should be on the line after 'f' and the caret should be just before the 'a'.</p>
6 <div id="test" contenteditable="true"><div>foo</div><div>bar</div></div>
8 <script>
9 var s = window.getSelection();
10 var e = document.getElementById("test");
12 s.collapse(e, 0);
13 s.modify("move", "forward", "character");
14 s.modify("extend", "forward", "line");
16 document.execCommand("InsertParagraph");
18 </script>