Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / input-delete.html
blob579ef8dfb876180a98b87eca9f5085eca1ab94d3
1 <html>
2 <head>
3 <script src="../../editing/editing.js" language="JavaScript" type="text/JavaScript" ></script>
4 <script>
5 function test() {
6 if (window.testRunner) {
7 testRunner.dumpAsText();
9 document.getElementById('tf').setSelectionRange(5, 11);
10 deleteCommand();
11 if (document.getElementById('tf').value == "Test Failed") {
12 document.getElementById('res').innerHTML = "Failed";
13 } else {
14 document.getElementById('res').innerHTML = "Passed";
17 </script>
18 </head>
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>
23 <div id="res"></div>
24 </body>
25 </html>