blob: 5feb11326a6a985c4c9d75a2eca1815a0bc53813 [file] [log] [blame]
<!doctype html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../assert_selection.js"></script>
<div id="log"></idv>
<script>
// This tests for sentence boundary when there are empty line break between
// lines of text.
selection_test(
'<div contenteditable>foo|<div><br></div>bar</div>',
selection => selection.modify('move', 'forward', 'sentence'),
'<div contenteditable>foo<div>|<br></div>bar</div>',
'1 move forward sentence to empty line break');
selection_test(
'<div contenteditable>foo<div>|<br></div>bar</div>',
selection => selection.modify('move', 'forward', 'sentence'),
'<div contenteditable>foo<div><br></div>|bar</div>',
'2 move forward sentence from empty line break');
</script>