blob: 5f422447f0fa11d755682cdc399ebc440feeeb51 [file] [log] [blame]
<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// This tests for a bug where a newline inserted at the end of an anonymous
// block would be lost.
selection_test(
'<div contenteditable>foo<div>bar|</div></div>',
'insertLineBreak',
'<div contenteditable>foo<div>bar<br>|<br></div></div>',
'InsertLineBreak at end of anonymous block');
</script>