OLD | NEW |
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 Loading... |
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 }; |
OLD | NEW |