6 var tf
= document
.getElementById('tf');
8 tf
.setSelectionRange(0, 0);
9 if (window
.testRunner
) {
10 testRunner
.dumpAsText();
11 eventSender
.keyDown("rightArrow");
13 if (tf
.selectionStart
== 1)
16 log("Test Failed. Selection start: " + tf
.selectionStart
+ " Selection end: " + tf
.selectionEnd
);
21 var res
= document
.getElementById('res');
22 res
.innerHTML
= res
.innerHTML
+ msg
+ "<br>";
26 <body onload=
"test()">
27 This tests that you can use arrow keys to navigate.
<br>
28 <input id=
"tf" value=
"test"></input>