Source/WebCore: Turn on move caret by word visually for Windows platform.
[WebKit-https.git] / LayoutTests / editing / selection / move-by-word-visually-crash-test-textarea.html
1 <script>
2
3 onload = function() {
4     var sel = window.getSelection();
5     sel.empty();
6
7     var test = document.getElementById("test_move_by_word");
8     test.focus();
9     test.selectionDirection = 'none';
10     test.selectionStart = 1;
11     test.selectionEnd = 1;
12
13     getSelection().modify("move", "left", "-webkit-visual-word");
14     getSelection().modify("move", "left", "-webkit-visual-word");
15     document.body.innerHTML = "Crash test passed";
16 };
17
18 if (window.layoutTestController) {
19     layoutTestController.dumpAsText();
20     layoutTestController.setEditingBehavior('win');
21 }
22 </script>
23
24 <textarea dir=ltr title="0|0" id="test_move_by_word">At where are you</textarea>