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

Unified Diff: test/inspector/runtime/console-deprecated-methods.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-deprecated-methods.js
diff --git a/test/inspector/runtime/console-deprecated-methods.js b/test/inspector/runtime/console-deprecated-methods.js
index a33c2e75ae1870d91bcc6ff48021d111e5af4e14..2705cb083f4620ed76d0bcf6849e13d68f7efdb6 100644
--- a/test/inspector/runtime/console-deprecated-methods.js
+++ b/test/inspector/runtime/console-deprecated-methods.js
@@ -4,8 +4,8 @@
print("Tests checks that deprecation messages for console.")
-InspectorTest.eventHandler["Runtime.consoleAPICalled"] = messageAdded;
-InspectorTest.sendCommand("Runtime.enable", {});
+Protocol.Runtime.onConsoleAPICalled(messageAdded);
+Protocol.Runtime.enable();
var deprecatedMethods = [
"console.timeline(\"42\")",
@@ -14,7 +14,7 @@ var deprecatedMethods = [
"console.timelineEnd(\"42\")",
"console.markTimeline(\"42\")",
];
-InspectorTest.sendCommand("Runtime.evaluate", { expression: deprecatedMethods.join(";") });
+Protocol.Runtime.evaluate({ expression: deprecatedMethods.join(";") });
var messagesLeft = 3;
function messageAdded(data)
« no previous file with comments | « test/inspector/runtime/console-api-repeated-in-console.js ('k') | test/inspector/runtime/console-line-and-column.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698