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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js

Issue 2369173002: DevTools: [Workspace] show network files in navigator (Closed)
Patch Set: address comments + improvement Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698