blob: 5fe8dfbd0088cfc2bce6b962bd2c4ba85124ec36 [file] [log] [blame]
<html>
<head>
<script src="../editing.js"></script>
<script>
function editingTest() {
extendSelectionForwardByLineCommand();
deleteCommand();
}
</script>
</head>
<body>
<p>This tests deletion of an empty line starting inside a &lt;div&gt; element,
but ending outside that element (just before a &lt;br&gt;). In this case, the
&lt;div&gt; has no content inside it, but a min-height style prevents it from
collapsing. If the deletion is successful, the result should have two lines,
and the insertion point should be on the second line, at the end of the editable area.</p>
<div contenteditable>
<div>a</div><div id="test" style="min-height:50px"></div><br>
</div>
</body>
<script>runEditingTest()</script>
</html>