| Index: third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html b/third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html
|
| index 5f8f31eab221027534a0760473c8926b6cb1eac9..8fb87e4caf6f634163d22a8f02e41b9b464ddf0b 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html
|
| @@ -65,8 +65,13 @@ function test()
|
| ]
|
| }]
|
| }]};
|
| - var commands = SDK.InspectorBackendHostedMode.generateCommands(inspectorJson);
|
| - eval(commands);
|
| + // The protocol definition above is not used, but is left as a reference for commands below.
|
| + InspectorBackend.registerCommand("Profiler.commandArgs0", [], [], false);
|
| + InspectorBackend.registerCommand("Profiler.commandArgs1Rets0", [{"name": "arg1", "type": "number", "optional": false}], [], false);
|
| + InspectorBackend.registerCommand("Profiler.commandArgs1Rets1", [{"name": "arg1", "type": "object", "optional": false}], ["arg1"], false);
|
| + InspectorBackend.registerCommand("Profiler.commandArgs3Rets3",
|
| + [{"name": "arg1", "type": "object", "optional": false}, {"name": "arg2", "type": "number", "optional": true}, {"name": "arg3", "type": "string", "optional": true}], ["arg1", "arg2", "arg3"], false);
|
| + InspectorBackend.registerCommand("Profiler.commandError", [{"name": "error", "type": "object", "optional": false}], [], false);
|
|
|
| var sendMessageToBackendOriginal = InspectorFrontendHost.sendMessageToBackend;
|
| InspectorFrontendHost.sendMessageToBackend = sendMessageToBackendLoopback;
|
|
|