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