4 <p>This tests pasting text ('foo\nbar') into a list item. The last bit of content in the incoming fragment should be merged with the paragraph after the position being pasted into.</p>
5 <div id="test2" contenteditable="true"><ul><li><div>Item 1</div></li></ul></div>
6 <script src="../../resources/dump-as-markup.js"></script>
7 <script src="../editing.js"></script>
10 testRunner.dumpEditingCallbacks();
12 var e = document.getElementById("test2");
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 moveSelectionForwardByWordCommand();
20 insertHTMLCommand("<div>foo</div><div>bar</div>");
22 Markup.dump(e, 'After insertion');