OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/protocol-test.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 window.addEventListener("beforeunload", onBeforeUnload); | 6 window.onbeforeunload = onBeforeUnload; |
7 | 7 |
8 function onBeforeUnload() | 8 function onBeforeUnload() |
9 { | 9 { |
10 window.removeEventListener("beforeunload", onBeforeUnload); | 10 window.removeEventListener("beforeunload", onBeforeUnload); |
11 return "beforeunload in javascriptDialogEvents"; | 11 return "beforeunload in javascriptDialogEvents"; |
12 } | 12 } |
13 | 13 |
14 function test() | 14 function test() |
15 { | 15 { |
16 InspectorTest.eventHandler["Page.javascriptDialogOpening"] = onOpening; | 16 InspectorTest.eventHandler["Page.javascriptDialogOpening"] = onOpening; |
(...skipping 26 matching lines...) Expand all Loading... |
43 { | 43 { |
44 InspectorTest.completeTest(); | 44 InspectorTest.completeTest(); |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 </script> | 48 </script> |
49 </head> | 49 </head> |
50 <body onload="runTest()"> | 50 <body onload="runTest()"> |
51 </body> | 51 </body> |
52 </html> | 52 </html> |
OLD | NEW |