blob: 1dd41b3d61cf579131299656856476379978422a [file] [log] [blame]
<p>This tests for a bug in moveParagraphs that would cause an empty paragraph to collapse.</p>
<div id="div" contenteditable="true">There should be an empty paragraph below this one.<div>There should be an empty paragraph below this one.</div><br>There should be an empty paragraph above this one.</div>
<script>
if (window.layoutTestController)
window.layoutTestController.dumpAsText();
var div = document.getElementById("div");
var sel = window.getSelection();
sel.setPosition(div, 0);
sel.modify("move", "forward", "character");
sel.modify("extend", "forward", "line");
document.execCommand("Delete");
</script>