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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/page/frameAttachedDetached.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/frameAttachedDetached.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/page/frameAttachedDetached.html b/third_party/WebKit/LayoutTests/inspector-protocol/page/frameAttachedDetached.html
deleted file mode 100644
index 2c92ae31c719ccb634be90c886f80ebb2467bd41..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/page/frameAttachedDetached.html
+++ /dev/null
@@ -1,61 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
-<script>
-
-var frame;
-
-function append()
-{
- frame = document.createElement("iframe");
- frame.src = "../resources/blank.html";
- document.body.appendChild(frame);
-}
-
-function navigate() {
- frame.src = "about:blank";
-}
-
-function remove() {
- document.body.removeChild(frame);
-}
-
-function test()
-{
- InspectorTest.eventHandler["Page.frameAttached"] = onAttached;
- InspectorTest.eventHandler["Page.frameStartedLoading"] = onStartedLoading;
- InspectorTest.eventHandler["Page.frameNavigated"] = onNavigated;
- InspectorTest.eventHandler["Page.frameDetached"] = onDetached;
- InspectorTest.sendCommand("Page.enable", {});
-
- function onAttached()
- {
- InspectorTest.log("Attached");
- }
- function onStartedLoading()
- {
- InspectorTest.log("Started loading");
- }
- function onNavigated(response)
- {
- InspectorTest.log("Navigated");
- var frame = response.params.frame;
- if (frame.url == "about:blank")
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "remove()" });
- else
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "navigate()" });
- }
- function onDetached()
- {
- InspectorTest.log("Detached");
- InspectorTest.completeTest();
- }
-
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "append()" });
-}
-
-</script>
-</head>
-<body onload="runTest()">
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698