blob: d50c656c166db90fb2c240d9412a3d164f1b6a0e [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<div id="test" contenteditable="true"><span>foo</span></div>
<script src="../editing.js"></script>
<script src="../../resources/dump-as-markup.js"></script>
<script>
var s = window.getSelection();
var e = document.getElementById("test");
e.focus();
moveSelectionForwardByCharacterCommand();
insertHTMLCommand("<div>bar</div>baz");
Markup.description('This tests the last paragraph in the pasted fragment is merged with the content after the insertion position.\n'
+ '"baz" and "oo" should be in the same paragraph below.');
Markup.dump('test');
</script>
</body>
</html>