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

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

Issue 2868543002: DevTools: move FileSystemMapping under persistence/ module (Closed)
Patch Set: fix copyright Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var initialize_IsolatedFileSystemTest = function() { 1 var initialize_IsolatedFileSystemTest = function() {
2 2
3 InspectorFrontendHost.isolatedFileSystem = function(name) 3 InspectorFrontendHost.isolatedFileSystem = function(name)
4 { 4 {
5 return InspectorTest.TestFileSystem._instances[name]; 5 return InspectorTest.TestFileSystem._instances[name];
6 } 6 }
7 7
8 InspectorTest.TestFileSystem = function(fileSystemPath) 8 InspectorTest.TestFileSystem = function(fileSystemPath)
9 { 9 {
10 this.root = new InspectorTest.TestFileSystem.Entry(this, "", true, null); 10 this.root = new InspectorTest.TestFileSystem.Entry(this, "", true, null);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 }, 54 },
55 55
56 reportRemoved: function() 56 reportRemoved: function()
57 { 57 {
58 delete InspectorTest.TestFileSystem._instances[this.fileSystemPath]; 58 delete InspectorTest.TestFileSystem._instances[this.fileSystemPath];
59 InspectorFrontendHost.events.dispatchEventToListeners(InspectorFrontendH ostAPI.Events.FileSystemRemoved, this.fileSystemPath); 59 InspectorFrontendHost.events.dispatchEventToListeners(InspectorFrontendH ostAPI.Events.FileSystemRemoved, this.fileSystemPath);
60 }, 60 },
61 61
62 addFileMapping: function(urlPrefix, pathPrefix) 62 addFileMapping: function(urlPrefix, pathPrefix)
63 { 63 {
64 var fileSystemMapping = new Workspace.FileSystemMapping(Workspace.isolat edFileSystemManager); 64 var fileSystemMapping = new Persistence.FileSystemMapping(Workspace.isol atedFileSystemManager);
65 fileSystemMapping.addFileSystem(this.fileSystemPath); 65 fileSystemMapping.addFileSystem(this.fileSystemPath);
66 fileSystemMapping.addFileMapping(this.fileSystemPath, urlPrefix, pathPre fix); 66 fileSystemMapping.addFileMapping(this.fileSystemPath, urlPrefix, pathPre fix);
67 fileSystemMapping.dispose(); 67 fileSystemMapping.dispose();
68 Workspace.fileSystemMapping._loadFromSettings(); 68 Persistence.fileSystemMapping._loadFromSettings();
69 }, 69 },
70 70
71 /** 71 /**
72 * @param {string} path 72 * @param {string} path
73 * @param {string} content 73 * @param {string} content
74 * @param {number} lastModified 74 * @param {number} lastModified
75 */ 75 */
76 addFile: function(path, content, lastModified) 76 addFile: function(path, content, lastModified)
77 { 77 {
78 var pathTokens = path.split("/"); 78 var pathTokens = path.split("/");
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 truncate: function(num) 260 truncate: function(num)
261 { 261 {
262 this._entry._timestamp += this._modificationTimesDelta; 262 this._entry._timestamp += this._modificationTimesDelta;
263 this._entry.content = this._entry.content.slice(0, num); 263 this._entry.content = this._entry.content.slice(0, num);
264 if (this.onwriteend) 264 if (this.onwriteend)
265 this.onwriteend(); 265 this.onwriteend();
266 } 266 }
267 } 267 }
268 268
269 }; 269 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698