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

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

Issue 1369063002: DevTools: merge excluded folder manager into isolated file system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/workspace-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/isolated-filesystem-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/isolated-filesystem-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/isolated-filesystem-test.js
index c890a50c9bb9562978f55e971aaab272ebda7951..298c8a4a0fb32b9e850e8113e8586ee12c40f14b 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/isolated-filesystem-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/isolated-filesystem-test.js
@@ -71,18 +71,8 @@ MockIsolatedFileSystem.prototype = {
if (!this._callback)
return;
var files = Object.keys(this._files);
- for (var i = 0; i < files.length; ++i) {
- var isExcluded = false;
- for (var j = 0; j < files[i].length; ++j) {
- if (files[i][j] === "/") {
- if (InspectorTest.testExcludedFolderManager.isFileExcluded(this._path, files[i].substr(0, j + 1)))
- isExcluded = true;
- }
- }
- if (isExcluded)
- continue;
+ for (var i = 0; i < files.length; ++i)
this._callback(files[i].substr(1));
- }
delete this._callback;
},
@@ -128,11 +118,6 @@ MockIsolatedFileSystemManager.prototype = {
return this.fileSystemMapping;
},
- excludedFolderManager: function()
- {
- return InspectorTest.testExcludedFolderManager;
- },
-
__proto__: WebInspector.Object.prototype
}
@@ -148,7 +133,7 @@ InspectorTest.addFilesToMockFileSystem = function(path, files)
MockIsolatedFileSystem._isolatedFileSystemMocks[path]._addFiles(files);
}
-InspectorFrontendHost.isolatedFileSystem = function(name, url)
+InspectorFrontendHost.isolatedFileSystem = function(name)
{
return InspectorTest.TestFileSystem._instances[name];
}
@@ -164,7 +149,6 @@ InspectorTest.TestFileSystem._instances = {};
InspectorTest.TestFileSystem.prototype = {
reportCreated: function()
{
- WebInspector.isolatedFileSystemManager._loaded = true;
InspectorTest.TestFileSystem._instances[this.fileSystemPath] = this;
InspectorFrontendHost.events.dispatchEventToListeners(InspectorFrontendHostAPI.Events.FileSystemAdded, {
fileSystem: { fileSystemPath: this.fileSystemPath,
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/workspace-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698