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

Unified Diff: test/inspector/runtime/console-api-repeated-in-console.js

Issue 2379303002: Revert "[inspector] added inspector test runner [part 3-5]" (Closed)
Patch Set: Created 4 years, 3 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: test/inspector/runtime/console-api-repeated-in-console.js
diff --git a/test/inspector/runtime/console-api-repeated-in-console.js b/test/inspector/runtime/console-api-repeated-in-console.js
deleted file mode 100644
index 560988c7d1070dfd40c4186d8f7da7208182efeb..0000000000000000000000000000000000000000
--- a/test/inspector/runtime/console-api-repeated-in-console.js
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2016 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-print("Check that console.log is reported through Console domain as well.");
-
-var expectedMessages = 4;
-var messages = [];
-
-InspectorTest.eventHandler["Runtime.consoleAPICalled"] = consoleAPICalled;
-InspectorTest.eventHandler["Console.messageAdded"] = messageAdded;
-InspectorTest.sendCommandOrDie("Runtime.enable", {});
-InspectorTest.sendCommandOrDie("Console.enable", {});
-InspectorTest.sendCommandOrDie("Runtime.evaluate", { "expression": "console.log(42)" });
-InspectorTest.sendCommandOrDie("Runtime.evaluate", { "expression": "console.error('abc')" });
-
-function consoleAPICalled(result)
-{
- messages.push("api call: " + result.params.args[0].value);
- if (!(--expectedMessages))
- done();
-}
-
-function messageAdded(result)
-{
- messages.push("console message: " + result.params.message.text);
- if (!(--expectedMessages))
- done();
-}
-
-function done()
-{
- messages.sort();
- for (var message of messages)
- InspectorTest.log(message);
- InspectorTest.completeTest();
-}

Powered by Google App Engine
This is Rietveld 408576698