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

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

Issue 2390733002: [inspector] Make InspectorTest.sendCommand* private (Closed)
Patch Set: addressed comments Created 4 years, 2 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
index 560988c7d1070dfd40c4186d8f7da7208182efeb..ec4b34d8adf019b60e3d813c1d8a1d97d91ef390 100644
--- a/test/inspector/runtime/console-api-repeated-in-console.js
+++ b/test/inspector/runtime/console-api-repeated-in-console.js
@@ -7,12 +7,12 @@ 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')" });
+Protocol.Runtime.onConsoleAPICalled(consoleAPICalled);
+Protocol.Console.onMessageAdded(messageAdded);
+Protocol.Runtime.enable();
+Protocol.Console.enable();
+Protocol.Runtime.evaluate({ "expression": "console.log(42)" });
+Protocol.Runtime.evaluate({ "expression": "console.error('abc')" });
function consoleAPICalled(result)
{
« no previous file with comments | « test/inspector/runtime/compile-script-expected.txt ('k') | test/inspector/runtime/console-deprecated-methods.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698