OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
| 6 testRunner.setShouldStayOnPageAfterHandlingBeforeUnload(true); |
| 7 |
6 window.onbeforeunload = onBeforeUnload; | 8 window.onbeforeunload = onBeforeUnload; |
7 | 9 |
8 function onBeforeUnload() | 10 function onBeforeUnload() |
9 { | 11 { |
10 window.removeEventListener("beforeunload", onBeforeUnload); | 12 window.removeEventListener("beforeunload", onBeforeUnload); |
11 return "beforeunload in javascriptDialogEvents"; | 13 return "beforeunload in javascriptDialogEvents"; |
12 } | 14 } |
13 | 15 |
14 function test() | 16 function test() |
15 { | 17 { |
(...skipping 28 matching lines...) Expand all Loading... |
44 { | 46 { |
45 InspectorTest.completeTest(); | 47 InspectorTest.completeTest(); |
46 } | 48 } |
47 } | 49 } |
48 | 50 |
49 </script> | 51 </script> |
50 </head> | 52 </head> |
51 <body onload="runTest()"> | 53 <body onload="runTest()"> |
52 </body> | 54 </body> |
53 </html> | 55 </html> |
OLD | NEW |