Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / insert-paragraph-separator-at-break.html
blobf8c74e4187974c25f71e1e815109a0b242f0715e
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div contenteditable id="test"><b>place the cursor between these two lines<br><br>and press return</b><br>
5 </div>
6 <script src="../../resources/dump-as-markup.js"></script>
7 <script>
9 Markup.description('This test ensures WebKit inserts only a break element when inserting a paragraph at a break element.\n'+
10 'Only one BR should be inserted in this test.');
12 var elem = document.getElementById('test');
13 window.getSelection().collapse(elem.firstChild, 2);
14 document.execCommand("InsertParagraph");
15 Markup.dump(elem, "After");
17 </script>
18 </body>
19 </html>