| 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 var titleText; | 363 var titleText = treeElement.title; |
| 364 if (treeElement.title instanceof Element) | 364 if (treeElement._trailingIconsElement) { |
| 365 titleText = treeElement.title.firstChild.textContent + " [mapped]"; | 365 var iconTypes = []; |
| 366 else | 366 for (var icon = treeElement._trailingIconsElement.firstChild; icon;
icon = icon.nextSibling) { |
| 367 titleText = treeElement.title; | 367 iconTypes.push(icon._iconType); |
| 368 } |
| 369 if (iconTypes.length) |
| 370 titleText = titleText + " [" + iconTypes.join(", ") + "]"; |
| 371 } |
| 368 if (treeElement._nodeType === Sources.NavigatorView.Types.FileSystem ||
treeElement._nodeType === Sources.NavigatorView.Types.FileSystemFolder) { | 372 if (treeElement._nodeType === Sources.NavigatorView.Types.FileSystem ||
treeElement._nodeType === Sources.NavigatorView.Types.FileSystemFolder) { |
| 369 var hasMappedFiles = treeElement.listItemElement.classList.contains(
"has-mapped-files"); | 373 var hasMappedFiles = treeElement.listItemElement.classList.contains(
"has-mapped-files"); |
| 370 if (!hasMappedFiles) | 374 if (!hasMappedFiles) |
| 371 titleText += " [dimmed]"; | 375 titleText += " [dimmed]"; |
| 372 } | 376 } |
| 373 InspectorTest.addResult(prefix + titleText); | 377 InspectorTest.addResult(prefix + titleText); |
| 374 treeElement.expand(); | 378 treeElement.expand(); |
| 375 var children = treeElement.children(); | 379 var children = treeElement.children(); |
| 376 for (var i = 0; i < children.length; ++i) | 380 for (var i = 0; i < children.length; ++i) |
| 377 dumpNavigatorTreeElement(prefix + " ", children[i]); | 381 dumpNavigatorTreeElement(prefix + " ", children[i]); |
| (...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1218 _output("[page] " + text); | 1222 _output("[page] " + text); |
| 1219 } | 1223 } |
| 1220 | 1224 |
| 1221 function _output(result) | 1225 function _output(result) |
| 1222 { | 1226 { |
| 1223 if (!outputElement) | 1227 if (!outputElement) |
| 1224 createOutputElement(); | 1228 createOutputElement(); |
| 1225 outputElement.appendChild(document.createTextNode(result)); | 1229 outputElement.appendChild(document.createTextNode(result)); |
| 1226 outputElement.appendChild(document.createElement("br")); | 1230 outputElement.appendChild(document.createElement("br")); |
| 1227 } | 1231 } |
| OLD | NEW |