Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / input-changing-value.html
blobee75a820f3d09d81b508ae1207263624c24266fa
1 <html>
2 <head>
3 <script>
5 function test()
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";
20 </script>
21 </head>
22 <body onload="test()">
23 This test changes the value of the text field by simulating typing, and then gets the value.
24 <br><br>
25 <input type="text" id="sp" style="-khtml-appearance:textfield"></input>
26 <div id="result">
27 Failed
28 </div>
29 </body>
30 </html>