OLD | NEW |
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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 callback(); | 353 callback(); |
354 } | 354 } |
355 } | 355 } |
356 | 356 |
357 InspectorTest.dumpNavigatorView = function(navigatorView) | 357 InspectorTest.dumpNavigatorView = function(navigatorView) |
358 { | 358 { |
359 dumpNavigatorTreeOutline(navigatorView._scriptsTree); | 359 dumpNavigatorTreeOutline(navigatorView._scriptsTree); |
360 | 360 |
361 function dumpNavigatorTreeElement(prefix, treeElement) | 361 function dumpNavigatorTreeElement(prefix, treeElement) |
362 { | 362 { |
363 InspectorTest.addResult(prefix + treeElement.title); | 363 var titleText; |
| 364 if (treeElement.title instanceof Element) |
| 365 titleText = treeElement.title.firstChild.textContent + " [mapped]"; |
| 366 else |
| 367 titleText = treeElement.title; |
| 368 if (treeElement._nodeType === WebInspector.NavigatorView.Types.FileSyste
m || treeElement._nodeType === WebInspector.NavigatorView.Types.FileSystemFolder
) { |
| 369 var hasMappedFiles = treeElement.listItemElement.classList.contains(
"has-mapped-files"); |
| 370 if (!hasMappedFiles) |
| 371 titleText += " [dimmed]"; |
| 372 } |
| 373 InspectorTest.addResult(prefix + titleText); |
364 treeElement.expand(); | 374 treeElement.expand(); |
365 var children = treeElement.children(); | 375 var children = treeElement.children(); |
366 for (var i = 0; i < children.length; ++i) | 376 for (var i = 0; i < children.length; ++i) |
367 dumpNavigatorTreeElement(prefix + " ", children[i]); | 377 dumpNavigatorTreeElement(prefix + " ", children[i]); |
368 } | 378 } |
369 | 379 |
370 function dumpNavigatorTreeOutline(treeOutline) | 380 function dumpNavigatorTreeOutline(treeOutline) |
371 { | 381 { |
372 var children = treeOutline.rootElement().children(); | 382 var children = treeOutline.rootElement().children(); |
373 for (var i = 0; i < children.length; ++i) | 383 for (var i = 0; i < children.length; ++i) |
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1143 _output("[page] " + text); | 1153 _output("[page] " + text); |
1144 } | 1154 } |
1145 | 1155 |
1146 function _output(result) | 1156 function _output(result) |
1147 { | 1157 { |
1148 if (!outputElement) | 1158 if (!outputElement) |
1149 createOutputElement(); | 1159 createOutputElement(); |
1150 outputElement.appendChild(document.createTextNode(result)); | 1160 outputElement.appendChild(document.createTextNode(result)); |
1151 outputElement.appendChild(document.createElement("br")); | 1161 outputElement.appendChild(document.createElement("br")); |
1152 } | 1162 } |
OLD | NEW |