Don't put pages that have not reached the non-visually empty layout milestone in...
[WebKit-https.git] / LayoutTests / fast / events / onunload-window-property.html
1 <html>
2
3 <head>
4 <script>
5
6 if (window.testRunner) {
7     testRunner.dumpAsText();
8     testRunner.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.testRunner) testRunner.notifyDone(); </" + "script>";
20 }
21
22 </script>
23 </head>
24
25 <body onload="load()">
26 start document
27 </body>
28
29 </html>