<!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('windows');
}
</script>

<textarea dir=ltr title="0|0" id="test_move_by_word">At where are you</textarea>
