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

Unified Diff: test/inspector/protocol-test.js

Issue 2766283002: [inspector] follow up for e27d18c94337f908d75fdccb4c5263180dbb1511 (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « test/inspector/debugger/stepping-with-natives-and-frameworks.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/protocol-test.js
diff --git a/test/inspector/protocol-test.js b/test/inspector/protocol-test.js
index db3cdee013b77889d08d7a6bfa7648cae6706cc5..ff06a96521c960db4c04d94d24bd6a69b87aa046 100644
--- a/test/inspector/protocol-test.js
+++ b/test/inspector/protocol-test.js
@@ -7,7 +7,7 @@ InspectorTest._dispatchTable = new Map();
InspectorTest._requestId = 0;
InspectorTest._dumpInspectorProtocolMessages = false;
InspectorTest._eventHandler = {};
-InspectorTest._commandToLog = new Set();
+InspectorTest._commandsForLogging = new Set();
Protocol = new Proxy({}, {
get: function(target, agentName, receiver) {
@@ -31,7 +31,7 @@ Protocol = new Proxy({}, {
}
});
-InspectorTest.dumpProtocolCommand = (command) => InspectorTest._commandToLog.add(command);
+InspectorTest.logProtocolCommandCalls = (command) => InspectorTest._commandsForLogging.add(command);
var utils = {};
(function setupUtils() {
@@ -268,7 +268,7 @@ InspectorTest._sendCommandPromise = function(method, params, contextGroupId)
var messageObject = { "id": requestId, "method": method, "params": params };
var fulfillCallback;
var promise = new Promise(fulfill => fulfillCallback = fulfill);
- if (InspectorTest._commandToLog.has(method)) {
+ if (InspectorTest._commandsForLogging.has(method)) {
utils.print(method + ' called');
}
InspectorTest.sendRawCommand(requestId, JSON.stringify(messageObject), fulfillCallback, contextGroupId);
« no previous file with comments | « test/inspector/debugger/stepping-with-natives-and-frameworks.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698