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

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

Issue 2947303002: [DevTools] Migrate inspector-protocol/{page,dom-snapshot} tests to new harness (Closed)
Patch Set: rebased 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/enable-disable.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/page/enable-disable.html b/third_party/WebKit/LayoutTests/inspector-protocol/page/enable-disable.html
deleted file mode 100644
index 77d025cc8d619bdfc6a49c2b9f61d826ea82a613..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/page/enable-disable.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
-<script>
-
-function test()
-{
- var log = [];
- InspectorTest.eventHandler["Timeline.eventRecorded"] = eventRecorded;
-
- InspectorTest.sendCommand("Timeline.start", {}, timelineStarted);
-
- function timelineStarted()
- {
- log.push("Timeline started");
- InspectorTest.sendCommand("Page.enable", {}, pageAgentEnabled);
- }
-
- function pageAgentEnabled()
- {
- log.push("Page enabled");
- InspectorTest.sendCommand("Page.disable", {}, pageAgentDisabled);
- }
-
- function pageAgentDisabled()
- {
- log.push("Page disabled");
- InspectorTest.sendCommand("NotExistingCommand", {}, didRoundTripOverProtocol);
- }
-
- function didRoundTripOverProtocol()
- {
- InspectorTest.sendCommand("Timeline.stop", {}, timelineStopped);
- }
-
- function timelineStopped(next)
- {
- log.push("Timeline stopped");
- for (var i = 0; i < log.length; ++i)
- InspectorTest.log(log[i]);
- InspectorTest.completeTest();
- }
-
- function eventRecorded(msg)
- {
- if (msg.params.record.type === "Program") {
- var children = msg.params.record.children;
- for (var i = 0; i < children.length; ++i) {
- var record = children[i];
- if (record.type === "GCEvent")
- continue;
- log.push("Timeline.eventRecorded: " + record.type);
- }
- return;
- }
- InspectorTest.log("FAIL: Unexpected records arrived");
- InspectorTest.logObject(msg);
- }
-}
-
-</script>
-<link href="resources/style.css" rel="stylesheet">
-</head>
-<body onload="runTest()">
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698