Index: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js |
index 58e5dbad34ef3948348886024b38ea76f371fe48..d586936b9dc83423cd95848eb43c7ba18eca6aa4 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js |
@@ -360,7 +360,17 @@ InspectorTest.dumpNavigatorView = function(navigatorView) |
function dumpNavigatorTreeElement(prefix, treeElement) |
{ |
- InspectorTest.addResult(prefix + treeElement.title); |
+ var titleText; |
+ if (treeElement.title instanceof Element) |
+ titleText = treeElement.title.firstChild.textContent + " [mapped]"; |
+ else |
+ titleText = treeElement.title; |
+ if (treeElement._nodeType === WebInspector.NavigatorView.Types.FileSystem || treeElement._nodeType === WebInspector.NavigatorView.Types.FileSystemFolder) { |
+ var hasMappedFiles = treeElement.listItemElement.classList.contains("has-mapped-files"); |
+ if (!hasMappedFiles) |
+ titleText += " [dimmed]"; |
+ } |
+ InspectorTest.addResult(prefix + titleText); |
treeElement.expand(); |
var children = treeElement.children(); |
for (var i = 0; i < children.length; ++i) |