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

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

Issue 2122353002: [DevTools] Make resource tree model optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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
OLDNEW
1 if (window.GCController) 1 if (window.GCController)
2 GCController.collectAll(); 2 GCController.collectAll();
3 var initialize_InspectorTest = function() { 3 var initialize_InspectorTest = function() {
4 4
5 var results = []; 5 var results = [];
6 6
7 function consoleOutputHook(messageType) 7 function consoleOutputHook(messageType)
8 { 8 {
9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1)); 9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1));
10 } 10 }
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 return buffer.replace(/\s*at[^()]+\(native\)/g, ""); 739 return buffer.replace(/\s*at[^()]+\(native\)/g, "");
740 } 740 }
741 741
742 InspectorTest.hideInspectorView = function() 742 InspectorTest.hideInspectorView = function()
743 { 743 {
744 WebInspector.inspectorView.element.setAttribute("style", "display:none !impo rtant"); 744 WebInspector.inspectorView.element.setAttribute("style", "display:none !impo rtant");
745 } 745 }
746 746
747 InspectorTest.mainFrame = function() 747 InspectorTest.mainFrame = function()
748 { 748 {
749 return InspectorTest.mainTarget.resourceTreeModel.mainFrame; 749 return WebInspector.ResourceTreeModel.fromTarget(InspectorTest.mainTarget).m ainFrame;
750 } 750 }
751 751
752 InspectorTest.StringOutputStream = function(callback) 752 InspectorTest.StringOutputStream = function(callback)
753 { 753 {
754 this._callback = callback; 754 this._callback = callback;
755 this._buffer = ""; 755 this._buffer = "";
756 }; 756 };
757 757
758 InspectorTest.StringOutputStream.prototype = { 758 InspectorTest.StringOutputStream.prototype = {
759 open: function(fileName, callback) 759 open: function(fileName, callback)
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 InspectorTest.InspectorAgent = target.inspectorAgent(); 956 InspectorTest.InspectorAgent = target.inspectorAgent();
957 InspectorTest.LayerTreeAgent = target.layerTreeAgent(); 957 InspectorTest.LayerTreeAgent = target.layerTreeAgent();
958 InspectorTest.NetworkAgent = target.networkAgent(); 958 InspectorTest.NetworkAgent = target.networkAgent();
959 InspectorTest.PageAgent = target.pageAgent(); 959 InspectorTest.PageAgent = target.pageAgent();
960 InspectorTest.ProfilerAgent = target.profilerAgent(); 960 InspectorTest.ProfilerAgent = target.profilerAgent();
961 InspectorTest.RuntimeAgent = target.runtimeAgent(); 961 InspectorTest.RuntimeAgent = target.runtimeAgent();
962 InspectorTest.WorkerAgent = target.workerAgent(); 962 InspectorTest.WorkerAgent = target.workerAgent();
963 963
964 InspectorTest.consoleModel = target.consoleModel; 964 InspectorTest.consoleModel = target.consoleModel;
965 InspectorTest.networkManager = WebInspector.NetworkManager.fromTarget(ta rget); 965 InspectorTest.networkManager = WebInspector.NetworkManager.fromTarget(ta rget);
966 InspectorTest.resourceTreeModel = target.resourceTreeModel; 966 InspectorTest.resourceTreeModel = WebInspector.ResourceTreeModel.fromTar get(target);
967 InspectorTest.networkLog = WebInspector.NetworkLog.fromTarget(target); 967 InspectorTest.networkLog = WebInspector.NetworkLog.fromTarget(target);
968 InspectorTest.debuggerModel = WebInspector.DebuggerModel.fromTarget(targ et); 968 InspectorTest.debuggerModel = WebInspector.DebuggerModel.fromTarget(targ et);
969 InspectorTest.runtimeModel = target.runtimeModel; 969 InspectorTest.runtimeModel = target.runtimeModel;
970 InspectorTest.domModel = WebInspector.DOMModel.fromTarget(target); 970 InspectorTest.domModel = WebInspector.DOMModel.fromTarget(target);
971 InspectorTest.cssModel = WebInspector.CSSModel.fromTarget(target); 971 InspectorTest.cssModel = WebInspector.CSSModel.fromTarget(target);
972 InspectorTest.workerManager = target.workerManager; 972 InspectorTest.workerManager = target.workerManager;
973 InspectorTest.powerProfiler = target.powerProfiler; 973 InspectorTest.powerProfiler = target.powerProfiler;
974 InspectorTest.cpuProfilerModel = target.cpuProfilerModel; 974 InspectorTest.cpuProfilerModel = target.cpuProfilerModel;
975 InspectorTest.heapProfilerModel = target.heapProfilerModel; 975 InspectorTest.heapProfilerModel = target.heapProfilerModel;
976 InspectorTest.animationModel = target.animationModel; 976 InspectorTest.animationModel = target.animationModel;
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 _output("[page] " + text); 1203 _output("[page] " + text);
1204 } 1204 }
1205 1205
1206 function _output(result) 1206 function _output(result)
1207 { 1207 {
1208 if (!outputElement) 1208 if (!outputElement)
1209 createOutputElement(); 1209 createOutputElement();
1210 outputElement.appendChild(document.createTextNode(result)); 1210 outputElement.appendChild(document.createTextNode(result));
1211 outputElement.appendChild(document.createElement("br")); 1211 outputElement.appendChild(document.createElement("br"));
1212 } 1212 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698