| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |