[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.22
[framework/web/webkit-efl.git] / LayoutTests / fast / events / onunload-window-property.html
1 <html>
2
3 <head>
4 <script>
5
6 if (window.layoutTestController) {
7     layoutTestController.dumpAsText();
8     layoutTestController.waitUntilDone();
9 }
10
11 function unload()
12 {
13     alert("unload");
14 }
15
16 function load()
17 {
18     window.onunload = unload;
19     location = "data:text/html,You should have seen an unload alert appear.<script>if (window.layoutTestController) layoutTestController.notifyDone(); </" + "script>";
20 }
21
22 </script>
23 </head>
24
25 <body onload="load()">
26 start document
27 </body>
28
29 </html>