<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.testRunner)
    window.testRunner.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>
