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