| Index: test/inspector/protocol-test.js
|
| diff --git a/test/inspector/protocol-test.js b/test/inspector/protocol-test.js
|
| index 52fb4b1d263b76057fcfc25a30587a0c1ea7437c..44a679707f695305b7e9dfbe827473ad6e67fe20 100644
|
| --- a/test/inspector/protocol-test.js
|
| +++ b/test/inspector/protocol-test.js
|
| @@ -133,6 +133,27 @@ InspectorTest.logObject = function(object, title)
|
| InspectorTest.log(lines.join("\n"));
|
| }
|
|
|
| +InspectorTest.logMessage = function(message)
|
| +{
|
| + if (message.id)
|
| + message.id = 0;
|
| +
|
| + const nonStableFields = new Set(["objectId", "scriptId", "exceptionId"]);
|
| + var objects = [ message ];
|
| + while (objects.length) {
|
| + var object = objects.shift();
|
| + for (var key in object) {
|
| + if (nonStableFields.has(key))
|
| + object[key] = `<${key}>`;
|
| + else if (typeof object[key] === "object")
|
| + objects.push(object[key]);
|
| + }
|
| + }
|
| +
|
| + InspectorTest.logObject(message);
|
| + return message;
|
| +}
|
| +
|
| InspectorTest.completeTest = quit.bind(null);
|
|
|
| InspectorTest.evaluateInPage = function(string, callback)
|
|
|