blob: ee75a820f3d09d81b508ae1207263624c24266fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<html>
<head>
<script>
function test()
{
document.getElementById('sp').focus();
if (window.testRunner) {
testRunner.dumpAsText();
}
document.execCommand("InsertText", false, 'Test');
if (document.getElementById('sp').value == "Test") {
document.getElementById('result').innerHTML = "Passed";
}
}
</script>
</head>
<body onload="test()">
This test changes the value of the text field by simulating typing, and then gets the value.
<br><br>
<input type="text" id="sp" style="-khtml-appearance:textfield"></input>
<div id="result">
Failed
</div>
</body>
</html>
|