| <!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> |