Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / keyevent-iframe-removed-crash.html
blob3278861813fa7e8dc2eb5ab61ffce129dd7cbb1b
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/gc.js"></script>
5 <script>
6 function go() {
7 var fr = document.createElement('iframe');
8 fr.id = "blorp";
9 document.body.appendChild(fr);
10 fr.contentDocument.body.innerHTML = '<p id="a">move mouse out of the window, and press a key</p>';
11 fr.contentDocument.body.onkeydown = function(e) {
12 e.preventDefault();
13 document.body.removeChild(fr);
16 fr.focus();
18 if (window.testRunner)
20 testRunner.dumpAsText();
21 testRunner.waitUntilDone();
22 setTimeout(nuke, 0);
26 function nuke() {
27 gc();
28 eventSender.keyDown("x")
29 testRunner.notifyDone();
31 </script>
32 </head>
34 <body onload="go()">
35 <p>
36 This test passes if it does not crash. Move the mouse out
37 of the window, and then press any key.
38 </p>
40 <p>
41 PASS
42 </p>
43 </body>
44 </html>