Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / forward-delete-key.html
blobb5510eabc0e02415512c2279bb902982585e166d
1 <body>
2 <p>Test that forward delete key works.</p>
3 <div id=result>Testing...</div>
4 <div id="div" contenteditable="true">123456</div>
6 <script>
7 if (window.testRunner)
8 window.testRunner.dumpAsText();
10 text = document.getElementById("div").firstChild;
11 window.getSelection().setBaseAndExtent(text, 0, text, 1);
12 if (window.eventSender) {
13 eventSender.keyDown("delete");
14 eventSender.keyDown("delete");
15 if (text.data == "3456")
16 document.getElementById("result").innerHTML = "PASS";
17 else
18 document.getElementById("result").innerHTML = "FAIL: " + text.data;
19 document.body.removeChild(document.getElementById("div"));
20 } else {
21 document.getElementById("result").innerHTML = "Please verify that forward delete works manually.";
23 </script>
24 </body>