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

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

Issue 2712043002: [DevTools] Separate frames and resources handling (Closed)
Patch Set: [DevTools] Separate frames and resources handling 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/Source/devtools/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var initialize_ResourceTreeTest = function() { 1 var initialize_ResourceTreeTest = function() {
2 2
3 InspectorTest.dumpResources = function(formatter) 3 InspectorTest.dumpResources = function(formatter)
4 { 4 {
5 var results = []; 5 var results = [];
6 6
7 function formatterWrapper(resource) 7 function formatterWrapper(resource)
8 { 8 {
9 if (formatter) 9 if (formatter)
10 results.push({ resource: resource, text: formatter(resource) }); 10 results.push({ resource: resource, text: formatter(resource) });
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 treeItem._resetBubble(); 57 treeItem._resetBubble();
58 58
59 InspectorTest.addResult(prefix + treeItem.listItemElement.textContent); 59 InspectorTest.addResult(prefix + treeItem.listItemElement.textContent);
60 60
61 treeItem.expand(); 61 treeItem.expand();
62 var children = treeItem.children(); 62 var children = treeItem.children();
63 for (var i = 0; children && i < children.length; ++i) 63 for (var i = 0; children && i < children.length; ++i)
64 dump(children[i], prefix + " "); 64 dump(children[i], prefix + " ");
65 } 65 }
66 66
67 dump(UI.panels.resources.resourcesListTreeElement, ""); 67 dump(UI.panels.resources._resourcesSection._treeElement, "");
68 if (!InspectorTest._testSourceNavigator) { 68 if (!InspectorTest._testSourceNavigator) {
69 InspectorTest._testSourceNavigator = new Sources.SourcesNavigatorView(); 69 InspectorTest._testSourceNavigator = new Sources.SourcesNavigatorView();
70 InspectorTest._testSourceNavigator.show(UI.inspectorView.element); 70 InspectorTest._testSourceNavigator.show(UI.inspectorView.element);
71 } 71 }
72 InspectorTest.dumpNavigatorViewInAllModes(InspectorTest._testSourceNavigator ); 72 InspectorTest.dumpNavigatorViewInAllModes(InspectorTest._testSourceNavigator );
73 } 73 }
74 74
75 InspectorTest.dumpResourceTreeEverything = function() 75 InspectorTest.dumpResourceTreeEverything = function()
76 { 76 {
77 function format(resource) 77 function format(resource)
78 { 78 {
79 return resource.resourceType().name() + " " + resource.url; 79 return resource.resourceType().name() + " " + resource.url;
80 } 80 }
81 81
82 InspectorTest.addResult("Resources:"); 82 InspectorTest.addResult("Resources:");
83 InspectorTest.dumpResources(format); 83 InspectorTest.dumpResources(format);
84 84
85 InspectorTest.addResult(""); 85 InspectorTest.addResult("");
86 InspectorTest.addResult("Resources URL Map:"); 86 InspectorTest.addResult("Resources URL Map:");
87 InspectorTest.dumpResourcesURLMap(); 87 InspectorTest.dumpResourcesURLMap();
88 88
89 InspectorTest.addResult(""); 89 InspectorTest.addResult("");
90 InspectorTest.addResult("Resources Tree:"); 90 InspectorTest.addResult("Resources Tree:");
91 InspectorTest.dumpResourcesTree(); 91 InspectorTest.dumpResourcesTree();
92 } 92 }
93 93
94 }; 94 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698