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

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: Comments Created 4 years, 4 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/sources/debugger-ui/execution-context-sorted.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 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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 return buffer.replace(/\s*at[^()]+\(native\)/g, ""); 671 return buffer.replace(/\s*at[^()]+\(native\)/g, "");
672 } 672 }
673 673
674 InspectorTest.hideInspectorView = function() 674 InspectorTest.hideInspectorView = function()
675 { 675 {
676 WebInspector.inspectorView.element.setAttribute("style", "display:none !impo rtant"); 676 WebInspector.inspectorView.element.setAttribute("style", "display:none !impo rtant");
677 } 677 }
678 678
679 InspectorTest.mainFrame = function() 679 InspectorTest.mainFrame = function()
680 { 680 {
681 return InspectorTest.mainTarget.resourceTreeModel.mainFrame; 681 return WebInspector.ResourceTreeModel.fromTarget(InspectorTest.mainTarget).m ainFrame;
682 } 682 }
683 683
684 InspectorTest.StringOutputStream = function(callback) 684 InspectorTest.StringOutputStream = function(callback)
685 { 685 {
686 this._callback = callback; 686 this._callback = callback;
687 this._buffer = ""; 687 this._buffer = "";
688 }; 688 };
689 689
690 InspectorTest.StringOutputStream.prototype = { 690 InspectorTest.StringOutputStream.prototype = {
691 open: function(fileName, callback) 691 open: function(fileName, callback)
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 InspectorTest.LayerTreeAgent = target.layerTreeAgent(); 888 InspectorTest.LayerTreeAgent = target.layerTreeAgent();
889 InspectorTest.NetworkAgent = target.networkAgent(); 889 InspectorTest.NetworkAgent = target.networkAgent();
890 InspectorTest.PageAgent = target.pageAgent(); 890 InspectorTest.PageAgent = target.pageAgent();
891 InspectorTest.ProfilerAgent = target.profilerAgent(); 891 InspectorTest.ProfilerAgent = target.profilerAgent();
892 InspectorTest.RuntimeAgent = target.runtimeAgent(); 892 InspectorTest.RuntimeAgent = target.runtimeAgent();
893 InspectorTest.WorkerAgent = target.workerAgent(); 893 InspectorTest.WorkerAgent = target.workerAgent();
894 894
895 InspectorTest.consoleModel = target.consoleModel; 895 InspectorTest.consoleModel = target.consoleModel;
896 InspectorTest.networkManager = WebInspector.NetworkManager.fromTarget(ta rget); 896 InspectorTest.networkManager = WebInspector.NetworkManager.fromTarget(ta rget);
897 InspectorTest.securityOriginManager = WebInspector.SecurityOriginManager .fromTarget(target); 897 InspectorTest.securityOriginManager = WebInspector.SecurityOriginManager .fromTarget(target);
898 InspectorTest.resourceTreeModel = target.resourceTreeModel; 898 InspectorTest.resourceTreeModel = WebInspector.ResourceTreeModel.fromTar get(target);
899 InspectorTest.networkLog = WebInspector.NetworkLog.fromTarget(target); 899 InspectorTest.networkLog = WebInspector.NetworkLog.fromTarget(target);
900 InspectorTest.debuggerModel = WebInspector.DebuggerModel.fromTarget(targ et); 900 InspectorTest.debuggerModel = WebInspector.DebuggerModel.fromTarget(targ et);
901 InspectorTest.runtimeModel = target.runtimeModel; 901 InspectorTest.runtimeModel = target.runtimeModel;
902 InspectorTest.domModel = WebInspector.DOMModel.fromTarget(target); 902 InspectorTest.domModel = WebInspector.DOMModel.fromTarget(target);
903 InspectorTest.cssModel = WebInspector.CSSModel.fromTarget(target); 903 InspectorTest.cssModel = WebInspector.CSSModel.fromTarget(target);
904 InspectorTest.workerManager = target.workerManager; 904 InspectorTest.workerManager = target.workerManager;
905 InspectorTest.powerProfiler = target.powerProfiler; 905 InspectorTest.powerProfiler = target.powerProfiler;
906 InspectorTest.cpuProfilerModel = target.cpuProfilerModel; 906 InspectorTest.cpuProfilerModel = target.cpuProfilerModel;
907 InspectorTest.heapProfilerModel = target.heapProfilerModel; 907 InspectorTest.heapProfilerModel = target.heapProfilerModel;
908 InspectorTest.animationModel = target.animationModel; 908 InspectorTest.animationModel = target.animationModel;
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 _output("[page] " + text); 1145 _output("[page] " + text);
1146 } 1146 }
1147 1147
1148 function _output(result) 1148 function _output(result)
1149 { 1149 {
1150 if (!outputElement) 1150 if (!outputElement)
1151 createOutputElement(); 1151 createOutputElement();
1152 outputElement.appendChild(document.createTextNode(result)); 1152 outputElement.appendChild(document.createTextNode(result));
1153 outputElement.appendChild(document.createElement("br")); 1153 outputElement.appendChild(document.createElement("br"));
1154 } 1154 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/execution-context-sorted.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698