blob: 00cb3be45ba8ce73945a605c325c72a5f4a1c136 [file] [edit]
<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../../resources/assert-selection.js"></script>
<script>
// This tests deletion of an empty line starting inside a <div> element,
// but ending outside that element (just before a <br>). 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.
selection_test(
[
'<div contenteditable>',
'<div>a</div><div>^<br></div>|<br>',
'</div>',
],
'Delete',
[
'<div contenteditable>',
'<div>a</div><div>|<br></div>',
'</div>',
],
'Delete an empty line starting inside a <div>');
</script>