| Index: LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html
|
| diff --git a/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html b/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html
|
| index 294ba4036797e18bdcf5571ce04358693addc45f..bfd6a990929a29193ad8f6bb3cd2b9b2f03506ea 100644
|
| --- a/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html
|
| +++ b/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html
|
| @@ -136,13 +136,13 @@ InspectorTest.sendRawCommand = function(command, handler)
|
| }
|
|
|
| /**
|
| - * @param {string} message
|
| + * @param {string|!Object} messageOrObject
|
| */
|
| -InspectorFrontendAPI.dispatchMessage = function(message)
|
| +InspectorFrontendAPI.dispatchMessage = function(messageOrObject)
|
| {
|
| if (InspectorTest._dumpInspectorProtocolMessages)
|
| - testRunner.logToStderr("backend: " + message);
|
| - var messageObject = JSON.parse(message);
|
| + testRunner.logToStderr("backend: " + (typeof messageOrObject === "string" ? messageOrObject : JSON.stringify(messageOrObject)));
|
| + var messageObject = (typeof messageOrObject === "string" ? JSON.parse(messageOrObject) : messageOrObject);
|
| var messageId = messageObject["id"];
|
| try {
|
| if (typeof messageId === "number") {
|
|
|