Video is not started even if play button has been pressed.
[framework/web/webkit-efl.git] / LayoutTests / fast / events / onunload-clears-onbeforeunload.html
1 <html>
2
3 <head>
4 <script>
5
6 if (window.testRunner) {
7     testRunner.dumpAsText();
8     testRunner.waitUntilDone();
9 }
10
11 window.addEventListener('beforeunload', before, false);
12 window.onunload = unload; 
13
14 function before()
15 {
16     alert( "before unload");
17 }
18
19 function unload()
20 {
21     alert( "unload" );
22     window.removeEventListener('beforeunload', before, false);
23 }
24
25 function load()
26 {
27     location = "data:text/html,If you didn't hit an assert you PASS.<script>if (window.testRunner) testRunner.notifyDone(); </" + "script>";
28 }
29
30 </script>
31 </head>
32
33 <body onload="load()">
34 start document
35 </body>
36
37 </html>