blob: 319df354cc741dce9304a78765b9ffae2a6cdd7a [file] [log] [blame]
<script>
if (window.layoutTestController)
layoutTestController.dumpEditingCallbacks();
</script>
<p>This tests one of the cases where it is necessary for paste to merge the last paragraph in the fragment being pasted with the content after the position where the paste will occur.</p>
<div id="test" contenteditable="true"><span>foo</span></div>
<script type="text/javascript" src="../editing.js"></script>
<script>
var s = window.getSelection();
var e = document.getElementById("test");
e.focus();
s.setPosition(e, 0);
moveSelectionForwardByCharacterCommand();
insertHTMLCommand("<div>bar</div>baz");
</script>