delete-line-017.html   [plain text]


<html> 

<head>
<script src="../editing.js"></script>
<script>
function editingTest() {
    moveSelectionForwardByLineCommand();    
    extendSelectionForwardByLineCommand();    
    deleteCommand(); 
}
</script>
</head> 

<body>

<p>This tests deletion of an empty line which is a &lt;br&gt; element just after
a &lt;div&gt; element. If the deletion is successful, the result should have two lines,
and the insertion point should be at the start of the second line, just before the letter "b".</p>

<div contenteditable>
<div id="test">a</div><br><div>b</div>
</div>

</body>

<script>runEditingTest()</script>

</html>