3 <script src=
"../../editing/editing.js" language=
"JavaScript" type=
"text/JavaScript" ></script>
6 if (window
.testRunner
) {
7 testRunner
.dumpAsText();
9 document
.getElementById('tf').setSelectionRange(5, 11);
11 if (document
.getElementById('tf').value
== "Test Failed") {
12 document
.getElementById('res').innerHTML
= "Failed";
14 document
.getElementById('res').innerHTML
= "Passed";
19 <body onload=
"test()">
20 <p>This tests that calling setSelectionRange on a text field will correctly close the typing command. If the test fails, the deleteCommand that
21 happens after the setSelectionRange will fail, and the text field will say
"Test Failed".
</p>
22 <input id=
"tf" value=
"Test Failed"></input>