Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / line-break.html
blob9bc72de0471d02e7bd42e19191b33d9a8c4d6b48
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This testcase used to break InsertLineBreak. The editable region below should have two empty paragraphs in it, and the caret should be in the second.</p>
7 <div id="test" contenteditable="true"><div>
8 <br></div></div>
10 <script>
11 var s = window.getSelection();
12 var e = document.getElementById("test");
14 s.collapse(e, 0);
15 document.execCommand("InsertLineBreak");
17 </script>