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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js

Issue 2722993002: [DevTools] Turn TracingManager into SDKModel. (Closed)
Patch Set: review comment Created 3 years, 9 months 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/http/tests/inspector/timeline-test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 if (window.GCController) 1 if (window.GCController)
2 GCController.collectAll(); 2 GCController.collectAll();
3 3
4 var initialize_InspectorTest = function() { 4 var initialize_InspectorTest = function() {
5 Protocol.InspectorBackend.Options.suppressRequestErrors = true; 5 Protocol.InspectorBackend.Options.suppressRequestErrors = true;
6 var results = []; 6 var results = [];
7 7
8 function consoleOutputHook(messageType) 8 function consoleOutputHook(messageType)
9 { 9 {
10 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1)); 10 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1));
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 InspectorTest.debuggerModel = SDK.DebuggerModel.fromTarget(target); 971 InspectorTest.debuggerModel = SDK.DebuggerModel.fromTarget(target);
972 InspectorTest.runtimeModel = target.runtimeModel; 972 InspectorTest.runtimeModel = target.runtimeModel;
973 InspectorTest.domModel = SDK.DOMModel.fromTarget(target); 973 InspectorTest.domModel = SDK.DOMModel.fromTarget(target);
974 InspectorTest.cssModel = target.model(SDK.CSSModel); 974 InspectorTest.cssModel = target.model(SDK.CSSModel);
975 InspectorTest.powerProfiler = target.powerProfiler; 975 InspectorTest.powerProfiler = target.powerProfiler;
976 InspectorTest.cpuProfilerModel = target.model(SDK.CPUProfilerModel); 976 InspectorTest.cpuProfilerModel = target.model(SDK.CPUProfilerModel);
977 InspectorTest.heapProfilerModel = target.heapProfilerModel; 977 InspectorTest.heapProfilerModel = target.heapProfilerModel;
978 InspectorTest.animationModel = target.animationModel; 978 InspectorTest.animationModel = target.animationModel;
979 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; 979 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel;
980 InspectorTest.serviceWorkerManager = target.model(SDK.ServiceWorkerManag er); 980 InspectorTest.serviceWorkerManager = target.model(SDK.ServiceWorkerManag er);
981 InspectorTest.tracingManager = target.tracingManager; 981 InspectorTest.tracingManager = target.model(SDK.TracingManager);
982 InspectorTest.mainTarget = target; 982 InspectorTest.mainTarget = target;
983 }, 983 },
984 984
985 targetRemoved: function(target) { } 985 targetRemoved: function(target) { }
986 }); 986 });
987 987
988 InspectorTest._panelsToPreload = []; 988 InspectorTest._panelsToPreload = [];
989 989
990 InspectorTest.preloadPanel = function(panelName) 990 InspectorTest.preloadPanel = function(panelName)
991 { 991 {
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 _output("[page] " + text); 1229 _output("[page] " + text);
1230 } 1230 }
1231 1231
1232 function _output(result) 1232 function _output(result)
1233 { 1233 {
1234 if (!outputElement) 1234 if (!outputElement)
1235 createOutputElement(); 1235 createOutputElement();
1236 outputElement.appendChild(document.createTextNode(result)); 1236 outputElement.appendChild(document.createTextNode(result));
1237 outputElement.appendChild(document.createElement("br")); 1237 outputElement.appendChild(document.createElement("br"));
1238 } 1238 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698