7 document
.getElementById('sp').focus();
9 if (window
.testRunner
) {
10 testRunner
.dumpAsText();
13 document
.execCommand("InsertText", false, 'Test');
15 if (document
.getElementById('sp').value
== "Test") {
16 document
.getElementById('result').innerHTML
= "Passed";
22 <body onload=
"test()">
23 This test changes the value of the text field by simulating typing, and then gets the value.
25 <input type=
"text" id=
"sp" style=
"-khtml-appearance:textfield"></input>