Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html

Issue 2516563003: [DevTools] Remove InspectorBackendHostedMode. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/inspector-backend-commands-generation.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or g/TR/html4/loose.dtd"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or g/TR/html4/loose.dtd">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../http/tests/inspector/inspector-test.js"></script> 4 <script src="../http/tests/inspector/inspector-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 function dumpArgument(name, value) 8 function dumpArgument(name, value)
9 { 9 {
10 InspectorTest.addResult(name + " result: " + (typeof value === "string" ? value : JSON.stringify(value))); 10 InspectorTest.addResult(name + " result: " + (typeof value === "string" ? value : JSON.stringify(value)));
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 {"name": "arg3", "type": "string"} 58 {"name": "arg3", "type": "string"}
59 ] 59 ]
60 }, 60 },
61 { 61 {
62 "name": "commandError", 62 "name": "commandError",
63 "parameters": [ 63 "parameters": [
64 {"name": "error", "type": "object"} 64 {"name": "error", "type": "object"}
65 ] 65 ]
66 }] 66 }]
67 }]}; 67 }]};
68 var commands = SDK.InspectorBackendHostedMode.generateCommands(inspectorJson ); 68 // The protocol definition above is not used, but is left as a reference for commands below.
69 eval(commands); 69 InspectorBackend.registerCommand("Profiler.commandArgs0", [], [], false);
70 InspectorBackend.registerCommand("Profiler.commandArgs1Rets0", [{"name": "ar g1", "type": "number", "optional": false}], [], false);
71 InspectorBackend.registerCommand("Profiler.commandArgs1Rets1", [{"name": "ar g1", "type": "object", "optional": false}], ["arg1"], false);
72 InspectorBackend.registerCommand("Profiler.commandArgs3Rets3",
73 [{"name": "arg1", "type": "object", "optional": false}, {"name": "arg2", "type": "number", "optional": true}, {"name": "arg3", "type": "string", "option al": true}], ["arg1", "arg2", "arg3"], false);
74 InspectorBackend.registerCommand("Profiler.commandError", [{"name": "error", "type": "object", "optional": false}], [], false);
70 75
71 var sendMessageToBackendOriginal = InspectorFrontendHost.sendMessageToBacken d; 76 var sendMessageToBackendOriginal = InspectorFrontendHost.sendMessageToBacken d;
72 InspectorFrontendHost.sendMessageToBackend = sendMessageToBackendLoopback; 77 InspectorFrontendHost.sendMessageToBackend = sendMessageToBackendLoopback;
73 78
74 function defaultHandler() { 79 function defaultHandler() {
75 return Array.prototype.slice.call(arguments); 80 return Array.prototype.slice.call(arguments);
76 } 81 }
77 82
78 var agent = SDK.targetManager.mainTarget().profilerAgent(); 83 var agent = SDK.targetManager.mainTarget().profilerAgent();
79 Promise.resolve() 84 Promise.resolve()
(...skipping 21 matching lines...) Expand all
101 InspectorFrontendHost.sendMessageToBackend = sendMessageToBackendOrigina l; 106 InspectorFrontendHost.sendMessageToBackend = sendMessageToBackendOrigina l;
102 InspectorTest.completeTest(); 107 InspectorTest.completeTest();
103 } 108 }
104 } 109 }
105 </script> 110 </script>
106 </head> 111 </head>
107 <body onload="runTest()"> 112 <body onload="runTest()">
108 <p>Tests correctness of promisified protocol commands.</p> 113 <p>Tests correctness of promisified protocol commands.</p>
109 </body> 114 </body>
110 </html> 115 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/inspector-backend-commands-generation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698