Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / inserting / return-key-before-br-in-span.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div contenteditable id="root"><span id="wrapper">First line<br>Second line</span></div>
5 <script src="../../resources/dump-as-markup.js"></script>
6 <script>
7 Markup.description("This sets the selection to the end of the first line, and hits the enter key.\n"
8     + "Expected behavior: a div is created around the second line, and the cursor is placed at the "
9     + "start of the second line. See bug 61594.");
10 var sel = window.getSelection();
11 sel.collapse(document.getElementById("wrapper"), 1);
12 document.execCommand("InsertParagraph", false, null);
13 Markup.dump(root);
14 </script>
15 </html>