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

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

Issue 2721663005: [DevTools] Access cpu profiler only when JS capability is present. (Closed)
Patch Set: rebased 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/inspector/profiler/cpu-profiler-stopped-removed-race.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 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 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 InspectorTest.consoleModel = target.consoleModel; 966 InspectorTest.consoleModel = target.consoleModel;
967 InspectorTest.networkManager = SDK.NetworkManager.fromTarget(target); 967 InspectorTest.networkManager = SDK.NetworkManager.fromTarget(target);
968 InspectorTest.securityOriginManager = SDK.SecurityOriginManager.fromTarg et(target); 968 InspectorTest.securityOriginManager = SDK.SecurityOriginManager.fromTarg et(target);
969 InspectorTest.resourceTreeModel = SDK.ResourceTreeModel.fromTarget(targe t); 969 InspectorTest.resourceTreeModel = SDK.ResourceTreeModel.fromTarget(targe t);
970 InspectorTest.networkLog = SDK.NetworkLog.fromTarget(target); 970 InspectorTest.networkLog = SDK.NetworkLog.fromTarget(target);
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.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.tracingManager;
982 InspectorTest.mainTarget = target; 982 InspectorTest.mainTarget = target;
983 }, 983 },
984 984
985 targetRemoved: function(target) { } 985 targetRemoved: function(target) { }
986 }); 986 });
(...skipping 242 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/inspector/profiler/cpu-profiler-stopped-removed-race.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698