Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / keypress-removed-node.html
blobae95a9397a5d294276f1d3d355cddc65ffcd6af5
1 <p>This test verifies that a node does not retain keyboard focus after it has
2 been removed from the DOM.</p>
3 <hr>
4 <input type="text">
5 <pre id="console">PASS: did not get keyboard event.</pre>
7 <script>
8 if (window.testRunner)
9 testRunner.dumpAsText();
11 input = document.getElementsByTagName('input')[0];
12 input.focus();
13 input.onkeypress = function() {
14 document.getElementById('console').innerHTML = "FAIL: got keyboard event.\n"
17 input.parentNode.removeChild(input);
19 if (window.eventSender)
20 eventSender.keyDown("A");
21 else
22 document.getElementById('console').innerHTML = "This test only runs from DumpRenderTree.\n"
23 </script>