| OLD | NEW |
| 1 var initialize_AutomappingTest = function() { | 1 var initialize_AutomappingTest = function() { |
| 2 | 2 |
| 3 InspectorTest.addFiles = function(testFileSystem, files) | 3 InspectorTest.addFiles = function(testFileSystem, files) |
| 4 { | 4 { |
| 5 for (var filePath in files) { | 5 for (var filePath in files) { |
| 6 var file = files[filePath]; | 6 var file = files[filePath]; |
| 7 testFileSystem.addFile(filePath, file.content, file.time ? file.time.get
Time() : 0); | 7 testFileSystem.addFile(filePath, file.content, file.time ? file.time.get
Time() : 0); |
| 8 } | 8 } |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 return null; | 33 return null; |
| 34 return new Workspace.UISourceCodeMetadata(timeOverride, metadata ? metad
ata.contentSize : null); | 34 return new Workspace.UISourceCodeMetadata(timeOverride, metadata ? metad
ata.contentSize : null); |
| 35 } | 35 } |
| 36 } | 36 } |
| 37 | 37 |
| 38 InspectorTest.AutomappingTest = function(workspace) | 38 InspectorTest.AutomappingTest = function(workspace) |
| 39 { | 39 { |
| 40 this._workspace = workspace; | 40 this._workspace = workspace; |
| 41 this._networkProject = new Bindings.ContentProviderBasedProject(this._worksp
ace, "AUTOMAPPING", Workspace.projectTypes.Network, "simple website"); | 41 this._networkProject = new Bindings.ContentProviderBasedProject(this._worksp
ace, "AUTOMAPPING", Workspace.projectTypes.Network, "simple website"); |
| 42 if (workspace !== Workspace.workspace) | 42 if (workspace !== Workspace.workspace) |
| 43 new Persistence.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemM
anager, this._workspace); | 43 new Persistence.FileSystemWorkspaceBinding(Persistence.isolatedFileSyste
mManager, this._workspace); |
| 44 this._failedBindingsCount = 0; | 44 this._failedBindingsCount = 0; |
| 45 this._automapping = new Persistence.Automapping(this._workspace, this._onBin
dingAdded.bind(this), this._onBindingRemoved.bind(this)); | 45 this._automapping = new Persistence.Automapping(this._workspace, this._onBin
dingAdded.bind(this), this._onBindingRemoved.bind(this)); |
| 46 InspectorTest.addSniffer(this._automapping, "_onBindingFailedForTest", this.
_onBindingFailed.bind(this), true); | 46 InspectorTest.addSniffer(this._automapping, "_onBindingFailedForTest", this.
_onBindingFailed.bind(this), true); |
| 47 InspectorTest.addSniffer(this._automapping, "_onSweepHappenedForTest", this.
_onSweepHappened.bind(this), true); | 47 InspectorTest.addSniffer(this._automapping, "_onSweepHappenedForTest", this.
_onSweepHappened.bind(this), true); |
| 48 } | 48 } |
| 49 | 49 |
| 50 InspectorTest.AutomappingTest.prototype = { | 50 InspectorTest.AutomappingTest.prototype = { |
| 51 removeResources: function(urls) | 51 removeResources: function(urls) |
| 52 { | 52 { |
| 53 for (var url of urls) | 53 for (var url of urls) |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 if (stabilized) { | 106 if (stabilized) { |
| 107 InspectorTest.addResult("Mapping has stabilized."); | 107 InspectorTest.addResult("Mapping has stabilized."); |
| 108 var callback = this._stabilizedCallback; | 108 var callback = this._stabilizedCallback; |
| 109 delete this._stabilizedCallback; | 109 delete this._stabilizedCallback; |
| 110 callback.call(null); | 110 callback.call(null); |
| 111 } | 111 } |
| 112 } | 112 } |
| 113 } | 113 } |
| 114 | 114 |
| 115 } | 115 } |
| OLD | NEW |