4 <script src=
"../../resources/dump-as-markup.js"></script>
5 <div id=
"test" contenteditable=
"true">
6 <div contenteditable=
"false">1</div>tryToInsertLineBreakInThisLine
</div>
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');
15 var selection
= window
.getSelection();
16 selection
.collapse(test
, test
.childNodes
.length
);
17 selection
.modify("move", "backward", "character");
18 document
.execCommand("InsertParagraph");