Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / insert-paragraph-between-text.html
blob8645eb6a04640e844059b85bf72a4b1632447844
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../resources/dump-as-markup.js"></script>
5 <div id="test" contenteditable="true">
6 <div contenteditable="false">1</div>tryToInsertLineBreakInThisLine</div>
8 <script>
9 Markup.description('Testcase for bug https://webkit.org/b/113007: Unable to insert a paragraph in between some text whose previous sibling is a non-editable block.\n'+
10 'The test has passed if three lines are displayed instead of two, with the last line consisting of the letter "e".');
12 var test = document.getElementById('test');
13 test.focus();
15 var selection = window.getSelection();
16 selection.collapse(test, test.childNodes.length);
17 selection.modify("move", "backward", "character");
18 document.execCommand("InsertParagraph");
20 Markup.dump(test);
21 </script>
22 </body>
23 </html>