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

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

Issue 2749043005: [DevTools] Make NetworkLog a singleton, and not an SDKModel (Closed)
Patch Set: review comments addressed 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/network-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 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 InspectorTest.InspectorAgent = target.inspectorAgent(); 967 InspectorTest.InspectorAgent = target.inspectorAgent();
968 InspectorTest.NetworkAgent = target.networkAgent(); 968 InspectorTest.NetworkAgent = target.networkAgent();
969 InspectorTest.PageAgent = target.pageAgent(); 969 InspectorTest.PageAgent = target.pageAgent();
970 InspectorTest.ProfilerAgent = target.profilerAgent(); 970 InspectorTest.ProfilerAgent = target.profilerAgent();
971 InspectorTest.RuntimeAgent = target.runtimeAgent(); 971 InspectorTest.RuntimeAgent = target.runtimeAgent();
972 InspectorTest.TargetAgent = target.targetAgent(); 972 InspectorTest.TargetAgent = target.targetAgent();
973 973
974 InspectorTest.networkManager = SDK.NetworkManager.fromTarget(target); 974 InspectorTest.networkManager = SDK.NetworkManager.fromTarget(target);
975 InspectorTest.securityOriginManager = SDK.SecurityOriginManager.fromTarg et(target); 975 InspectorTest.securityOriginManager = SDK.SecurityOriginManager.fromTarg et(target);
976 InspectorTest.resourceTreeModel = SDK.ResourceTreeModel.fromTarget(targe t); 976 InspectorTest.resourceTreeModel = SDK.ResourceTreeModel.fromTarget(targe t);
977 InspectorTest.networkLog = SDK.NetworkLog.fromTarget(target);
978 InspectorTest.debuggerModel = SDK.DebuggerModel.fromTarget(target); 977 InspectorTest.debuggerModel = SDK.DebuggerModel.fromTarget(target);
979 InspectorTest.runtimeModel = target.runtimeModel; 978 InspectorTest.runtimeModel = target.runtimeModel;
980 InspectorTest.domModel = SDK.DOMModel.fromTarget(target); 979 InspectorTest.domModel = SDK.DOMModel.fromTarget(target);
981 InspectorTest.cssModel = target.model(SDK.CSSModel); 980 InspectorTest.cssModel = target.model(SDK.CSSModel);
982 InspectorTest.powerProfiler = target.powerProfiler; 981 InspectorTest.powerProfiler = target.powerProfiler;
983 InspectorTest.cpuProfilerModel = target.model(SDK.CPUProfilerModel); 982 InspectorTest.cpuProfilerModel = target.model(SDK.CPUProfilerModel);
984 InspectorTest.heapProfilerModel = target.heapProfilerModel; 983 InspectorTest.heapProfilerModel = target.heapProfilerModel;
985 InspectorTest.animationModel = target.animationModel; 984 InspectorTest.animationModel = target.animationModel;
986 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; 985 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel;
987 InspectorTest.serviceWorkerManager = target.model(SDK.ServiceWorkerManag er); 986 InspectorTest.serviceWorkerManager = target.model(SDK.ServiceWorkerManag er);
988 InspectorTest.tracingManager = target.model(SDK.TracingManager); 987 InspectorTest.tracingManager = target.model(SDK.TracingManager);
989 InspectorTest.mainTarget = target; 988 InspectorTest.mainTarget = target;
990 InspectorTest.consoleModel = ConsoleModel.consoleModel; 989 InspectorTest.consoleModel = ConsoleModel.consoleModel;
990 InspectorTest.networkLog = SDK.networkLog;
991 }, 991 },
992 992
993 targetRemoved: function(target) { } 993 targetRemoved: function(target) { }
994 }); 994 });
995 995
996 InspectorTest._panelsToPreload = []; 996 InspectorTest._panelsToPreload = [];
997 997
998 InspectorTest.preloadPanel = function(panelName) 998 InspectorTest.preloadPanel = function(panelName)
999 { 999 {
1000 InspectorTest._panelsToPreload.push(panelName); 1000 InspectorTest._panelsToPreload.push(panelName);
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1237 _output("[page] " + text); 1237 _output("[page] " + text);
1238 } 1238 }
1239 1239
1240 function _output(result) 1240 function _output(result)
1241 { 1241 {
1242 if (!outputElement) 1242 if (!outputElement)
1243 createOutputElement(); 1243 createOutputElement();
1244 outputElement.appendChild(document.createTextNode(result)); 1244 outputElement.appendChild(document.createTextNode(result));
1245 outputElement.appendChild(document.createElement("br")); 1245 outputElement.appendChild(document.createElement("br"));
1246 } 1246 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698