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

Unified Diff: third_party/WebKit/LayoutTests/inspector/file-system-project.html

Issue 1369063002: DevTools: merge excluded folder manager into isolated file system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/inspector/file-system-project.html
diff --git a/third_party/WebKit/LayoutTests/inspector/file-system-project.html b/third_party/WebKit/LayoutTests/inspector/file-system-project.html
index e501a015378e0f8d1d6863170a34ee79543872f5..3dc5db5b4d58806a2887c0016ef434da35ea1328 100644
--- a/third_party/WebKit/LayoutTests/inspector/file-system-project.html
+++ b/third_party/WebKit/LayoutTests/inspector/file-system-project.html
@@ -75,11 +75,6 @@ function test()
dumpUISourceCodes(uiSourceCodes, uiSourceCodesDumped);
}
- function uiSourceCodeAdded(uiSourceCode)
- {
- uiSourceCodes.push(uiSourceCode)
- }
-
function uiSourceCodesDumped()
{
dumpUISourceCodeLocations(uiSourceCodes, 5);
@@ -126,6 +121,51 @@ function test()
}
}
},
+
+ function testFileSystems(next)
+ {
+ function dumpWorkspaceUISourceCodes()
+ {
+ InspectorTest.addResult("Dumping uiSourceCodes origin URLs:");
+ var uiSourceCodes = InspectorTest.fileSystemUISourceCodes();
+ for (var i = 0; i < uiSourceCodes.length; ++i)
+ InspectorTest.addResult(" - " + uiSourceCodes[i].originURL());
+ }
+
+ var fs;
+ function createFileSystem(name)
+ {
+ fs = new InspectorTest.TestFileSystem(name);
+ fs.root.mkdir("html").addFile("foo.js", "");
+ fs.root.mkdir(".git").addFile("foogit.js", "");
+ fs.root.addFile("bar.js", "");
+ fs.root.mkdir("html2").addFile("foo.js", "");
+ fs.reportCreated();
+ }
+
+ createFileSystem("/var/www");
+ InspectorTest.addResult("");
+ InspectorTest.addResult("-- Default excludes --");
+ dumpWorkspaceUISourceCodes();
+ fs.removeFileSystem();
+
+ WebInspector.settings.createLocalSetting("workspaceExcludedFolders", {}).set({"/var/www2":["/html/"]});
+ createFileSystem("/var/www2");
+ var isolatedFileSystem = WebInspector.isolatedFileSystemManager.fileSystem("/var/www2");
dgozman 2015/09/26 01:46:41 not used
+ InspectorTest.addResult("");
+ InspectorTest.addResult("-- Excluded /html/ --");
+ dumpWorkspaceUISourceCodes();
+ fs.removeFileSystem();
+
+ createFileSystem("/var/www3");
+ var isolatedFileSystem = WebInspector.isolatedFileSystemManager.fileSystem("/var/www3");
dgozman 2015/09/26 01:46:41 ditto
+ InspectorTest.fileSystemUISourceCodes()[0].project().excludeFolder("/html2/");
+ InspectorTest.addResult("");
+ InspectorTest.addResult("-- Excluded /html2/ --");
+ dumpWorkspaceUISourceCodes();
+ fs.removeFileSystem();
+ next();
+ }
]);
};
</script>

Powered by Google App Engine
This is Rietveld 408576698