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); |