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

Unified Diff: test/inspector/runtime/console-timestamp.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-timestamp.js
diff --git a/test/inspector/runtime/console-timestamp.js b/test/inspector/runtime/console-timestamp.js
index 07892ef0291138d6d5449e5453ffda3df94995dd..0dceaed23faa35ae4affefa91025421e40358537 100644
--- a/test/inspector/runtime/console-timestamp.js
+++ b/test/inspector/runtime/console-timestamp.js
@@ -18,7 +18,6 @@ function messageAdded(data)
InspectorTest.completeTest();
}
-InspectorTest.eventHandler["Runtime.consoleAPICalled"] = messageAdded;
-InspectorTest.sendCommand("Runtime.enable", {});
-
-InspectorTest.sendCommand("Runtime.evaluate", { expression: "console.log('testUnique'); for (var i = 0; i < 2; ++i) console.log('testDouble');" });
+Protocol.Runtime.onConsoleAPICalled(messageAdded);
+Protocol.Runtime.enable();
+Protocol.Runtime.evaluate({ expression: "console.log('testUnique'); for (var i = 0; i < 2; ++i) console.log('testDouble');" });
« no previous file with comments | « test/inspector/runtime/console-log-doesnt-run-microtasks.js ('k') | test/inspector/runtime/evaluate-async.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698