blob: 96f96e9a499a275289f028be014d0cc350e95f5b [file] [log] [blame]
<!DOCTYPE html>
<script>
onload = function() {
var sel = window.getSelection();
sel.empty();
var test = document.getElementById("test_move_by_word");
test.focus();
test.selectionDirection = 'none';
test.selectionStart = 1;
test.selectionEnd = 1;
getSelection().modify("move", "left", "-webkit-visual-word");
getSelection().modify("move", "left", "-webkit-visual-word");
document.body.innerHTML = "Crash test passed";
};
if (window.testRunner && window.internals) {
testRunner.dumpAsText();
internals.settings.setEditingBehavior('win');
}
</script>
<textarea dir=ltr title="0|0" id="test_move_by_word">At where are you</textarea>