blob: 0ef57e43f6fecd97bae040c01fd378642bf9a3d4 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<div id="editor" contenteditable>
This is<br>
<div id="target">one sentence.</div>
</div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
Markup.description('This tests moving the selection backwards at the beginning of a line by sentence granularity. The caret should move to the first line.');
editor.focus();
getSelection().setPosition(target, 0);
getSelection().modify('move', 'backward', 'sentence');
Markup.dump(editor);
</script>
</body>
</html>