| 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 54eccef27aec11963bafec3de8dc71c8605671aa..264f88b6b68bde4e46ea492ab82622f67ea43000 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html
|
| @@ -24,49 +24,14 @@ function test()
|
| setTimeout(InspectorFrontendAPI.dispatchMessage.bind(InspectorFrontendAPI, response), 0);
|
| }
|
|
|
| - var inspectorJson = {"domains": [{
|
| - "domain": "Profiler",
|
| - "commands": [
|
| - {
|
| - "name": "commandArgs0"
|
| - },
|
| - {
|
| - "name": "commandArgs1Rets0",
|
| - "parameters": [
|
| - {"name": "arg1", "type": "number"}
|
| - ]
|
| - },
|
| - {
|
| - "name": "commandArgs1Rets1",
|
| - "parameters": [
|
| - {"name": "arg1", "type": "object"}
|
| - ],
|
| - "returns": [
|
| - {"name": "arg1", "type": "object"}
|
| - ]
|
| - },
|
| - {
|
| - "name": "commandArgs3Rets3",
|
| - "parameters": [
|
| - {"name": "arg1", "type": "object"},
|
| - {"name": "arg2", "type": "number", "optional": true},
|
| - {"name": "arg3", "type": "string", "optional": true}
|
| - ],
|
| - "returns": [
|
| - {"name": "arg1", "type": "object"},
|
| - {"name": "arg2", "type": "number"},
|
| - {"name": "arg3", "type": "string"}
|
| - ]
|
| - },
|
| - {
|
| - "name": "commandError",
|
| - "parameters": [
|
| - {"name": "error", "type": "object"}
|
| - ]
|
| - }]
|
| - }]};
|
| - var commands = WebInspector.InspectorBackendHostedMode.generateCommands(inspectorJson);
|
| - eval(commands);
|
| + var commands = [
|
| + '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);'
|
| + ];
|
| + eval(commands.join(""));
|
|
|
| var sendMessageToBackendOriginal = InspectorFrontendHost.sendMessageToBackend;
|
| InspectorFrontendHost.sendMessageToBackend = sendMessageToBackendLoopback;
|
|
|