Index: third_party/WebKit/LayoutTests/inspector-protocol/page/javascriptDialogEvents.html |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/page/javascriptDialogEvents.html b/third_party/WebKit/LayoutTests/inspector-protocol/page/javascriptDialogEvents.html |
deleted file mode 100644 |
index 4e002c7d871908c33d48e657e2299d3efdb0a064..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/inspector-protocol/page/javascriptDialogEvents.html |
+++ /dev/null |
@@ -1,62 +0,0 @@ |
-<html> |
-<head> |
-<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script> |
-<script> |
- |
-testRunner.setShouldStayOnPageAfterHandlingBeforeUnload(true); |
- |
-// JavaScript onbeforeunload dialogs require a user gesture. |
-if (window.eventSender) { |
- eventSender.mouseMoveTo(5, 5); |
- eventSender.mouseDown(); |
- eventSender.mouseUp(); |
-} |
- |
-window.onbeforeunload = onBeforeUnload; |
- |
-function onBeforeUnload() |
-{ |
- window.removeEventListener("beforeunload", onBeforeUnload); |
- return "beforeunload in javascriptDialogEvents"; |
-} |
- |
-function test() |
-{ |
- InspectorTest.eventHandler["Page.javascriptDialogOpening"] = onOpening; |
- InspectorTest.eventHandler["Page.javascriptDialogClosed"] = onClosed; |
- InspectorTest.sendCommand("Page.enable", {}); |
- |
- function onOpening(event) |
- { |
- InspectorTest.log("Opening dialog: type=" + event.params.type + "; message=" + event.params.message); |
- } |
- |
- function onClosed(event) |
- { |
- InspectorTest.log("Closed dialog: result=" + event.params.result); |
- } |
- |
- InspectorTest.sendCommand("Page.navigate", { "url": "http://nosuchurl" }); |
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "alert('alert')" }, onDoneAlert); |
- |
- function onDoneAlert() |
- { |
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "confirm('confirm')" }, onDoneConfirm); |
- } |
- |
- function onDoneConfirm() |
- { |
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "prompt('prompt')" }, onDone); |
- } |
- |
- function onDone() |
- { |
- InspectorTest.completeTest(); |
- } |
-} |
- |
-</script> |
-</head> |
-<body onload="runTest()"> |
-</body> |
-</html> |