Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / inserting / line-break.html
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>
6
7 <div id="test" contenteditable="true"><div>
8 <br></div></div>
9
10 <script>
11 var s = window.getSelection();
12 var e = document.getElementById("test");
13
14 s.collapse(e, 0);
15 document.execCommand("InsertLineBreak");
16
17 </script>