| OLD | NEW | 
|---|
| 1 <html> | 1 <html> | 
| 2 | 2 | 
| 3 <head> | 3 <head> | 
| 4 <script> | 4 <script> | 
| 5 | 5 | 
| 6 if (window.testRunner) { | 6 if (window.testRunner) { | 
| 7     testRunner.dumpAsText(); | 7     testRunner.dumpAsText(); | 
| 8     testRunner.waitUntilDone(); | 8     testRunner.waitUntilDone(); | 
| 9 } | 9 } | 
| 10 | 10 | 
| 11 function unload() | 11 function unload() | 
| 12 { | 12 { | 
| 13     alert("unload"); | 13     alert("unload"); | 
| 14 } | 14 } | 
| 15 | 15 | 
| 16 function load() | 16 function load() | 
| 17 { | 17 { | 
| 18     window.onunload = unload; | 18     window.onunload = unload; | 
| 19     location = "data:text/html,You should have seen an unload alert appear.<scri
    pt>if (window.testRunner) testRunner.notifyDone(); </" + "script>"; | 19     location = "resources/onunload-single-alert-success.html"; | 
| 20 } | 20 } | 
| 21 | 21 | 
| 22 </script> | 22 </script> | 
| 23 </head> | 23 </head> | 
| 24 | 24 | 
| 25 <body onload="load()"> | 25 <body onload="load()"> | 
| 26 start document | 26 start document | 
| 27 </body> | 27 </body> | 
| 28 | 28 | 
| 29 </html> | 29 </html> | 
| OLD | NEW | 
|---|