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

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

Issue 2529303003: DevTools: move FileSystemMapping from Workspace to Persistence (Closed)
Patch Set: fix tests Created 4 years, 1 month 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/sources/debugger/file-system-project-mapping.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger/file-system-project-mapping.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger/file-system-project-mapping.html
index b557818ed30da29fc0cb06c16cb1a182ae128de4..9e9cb9cd1e57e359a923a7ce04a8aa2184d40bef 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger/file-system-project-mapping.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger/file-system-project-mapping.html
@@ -23,7 +23,7 @@ function test()
defaultScriptMapping = entry._defaultMapping;
if (persistence)
persistence.dispose();
- persistence = new Persistence.Persistence(InspectorTest.testWorkspace, Bindings.breakpointManager, Workspace.fileSystemMapping);
+ persistence = new Persistence.Persistence(InspectorTest.testWorkspace, Bindings.breakpointManager, Persistence.fileSystemMapping);
}
function dumpFileSystemUISourceCodesMappings()
@@ -61,14 +61,14 @@ function test()
InspectorTest.addResult("Adding mapping between network and file system resources.");
var fileSystemPath = Persistence.FileSystemWorkspaceBinding.fileSystemPath(uiSourceCode.project().id());
- Workspace.fileSystemMapping.addMappingForResource(networkUISourceCode.url(), fileSystemPath, uiSourceCode.url());
- var setting = JSON.stringify(Workspace.fileSystemMapping._fileSystemMappingSetting.get());
+ Persistence.fileSystemMapping.addMappingForResource(networkUISourceCode.url(), fileSystemPath, uiSourceCode.url());
+ var setting = JSON.stringify(Persistence.fileSystemMapping._fileSystemMappingSetting.get());
InspectorTest.addResult("Emulate reloading inspector.");
fs.reportRemoved();
createWorkspaceWithTarget();
- Workspace.fileSystemMapping._fileSystemMappingSetting.set(JSON.parse(setting));
- Workspace.fileSystemMapping._loadFromSettings();
+ Persistence.fileSystemMapping._fileSystemMappingSetting.set(JSON.parse(setting));
+ Persistence.fileSystemMapping._loadFromSettings();
fs.reportCreated(fileSystemCreated2);
}
@@ -81,7 +81,7 @@ function test()
InspectorTest.addResult("Removing mapping between network and file system resources.");
var uiSourceCode = InspectorTest.testWorkspace.uiSourceCode(fileSystemProjectId, "file:///var/www/html/foo.js");
- Workspace.fileSystemMapping.removeMappingForURL(uiSourceCode.url());
+ Persistence.fileSystemMapping.removeMappingForURL(uiSourceCode.url());
InspectorTest.addResult("Emulate reloading inspector.");
fs.reportRemoved();
@@ -95,7 +95,7 @@ function test()
InspectorTest.addMockUISourceCodeViaNetwork("http://localhost/bar.js", Common.resourceTypes.Script, "<foo content>", target);
dumpFileSystemUISourceCodesMappings();
- Workspace.fileSystemMapping.removeMappingForURL(networkUISourceCode.url());
+ Persistence.fileSystemMapping.removeMappingForURL(networkUISourceCode.url());
fs.reportRemoved();
next();
}

Powered by Google App Engine
This is Rietveld 408576698