Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/page/javascriptDialogEvents.html

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698