4 <p>This tests pasting a list ('Item
1') into a position that would normally result in an end merge.
</p>
5 <div id=
"test1" contenteditable=
"true">xx
</div>
6 <script src=
"../../resources/dump-as-markup.js"></script>
7 <script src=
"../editing.js"></script>
10 testRunner
.dumpEditingCallbacks();
12 var e
= document
.getElementById("test1");
13 var s
= window
.getSelection();
15 Markup
.description(document
.querySelector('p').textContent
);
16 Markup
.dump(e
, 'Before insertion');
18 setSelectionCommand(e
, 0, e
, 0);
19 moveSelectionForwardByCharacterCommand();
20 insertHTMLCommand("<ul><li><div>Item 1</div></li></ul>");
22 Markup
.dump(e
, 'After insertion');