<!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> |