[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.22
[framework/web/webkit-efl.git] / LayoutTests / fast / events / keyevent-iframe-removed-crash.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5     function go() {
6         var fr = document.createElement('iframe');
7         fr.id = "blorp";
8         document.body.appendChild(fr);
9         fr.contentDocument.body.innerHTML = '<p id="a">move mouse out of the window, and press a key</p>';
10         fr.contentDocument.body.onkeydown = function(e) {
11             e.preventDefault();
12             document.body.removeChild(fr);
13         };
14
15         fr.focus();
16
17         if (window.layoutTestController)
18         {
19             layoutTestController.dumpAsText();
20             layoutTestController.waitUntilDone();
21             setTimeout(nuke, 0);
22         }
23     }
24
25     function nuke() {
26         eventSender.keyDown("x")
27         layoutTestController.notifyDone();
28     }
29 </script>
30 </head>
31
32 <body onload="go()">
33     <p>
34         This test passes if it does not crash. Move the mouse out
35         of the window, and then press any key.
36     </p>
37
38     <p>
39         PASS
40     </p>
41 </body>
42 </html>