4 This test sets caret at the beginning of backward text and moving the character to left and right. WebKit should not crash and you should see PASS below:
5 <textarea id=
"editor">‮LTR
9 var sel
= window
.getSelection();
11 var test
= document
.getElementById("editor");
13 test
.selectionDirection
= 'none';
14 test
.selectionStart
= 0;
15 test
.selectionEnd
= 0;
16 getSelection().modify("move", "left", "character");
17 getSelection().modify("move", "left", "character");
18 test
.selectionDirection
= 'none';
19 test
.selectionStart
= 1;
20 test
.selectionEnd
= 1;
21 getSelection().modify("move", "right", "character");
22 getSelection().modify("move", "right", "character");
23 document
.body
.innerHTML
= "PASS";
26 if (window
.testRunner
)
27 testRunner
.dumpAsText();