| OLD | NEW |
| 1 var initialize_PersistenceTest = function() { | 1 var initialize_PersistenceTest = function() { |
| 2 | 2 |
| 3 InspectorTest.preloadModule("persistence"); | 3 InspectorTest.preloadModule("persistence"); |
| 4 InspectorTest.preloadModule("sources"); | 4 InspectorTest.preloadModule("sources"); |
| 5 | 5 |
| 6 WebInspector.PersistenceBinding.prototype.toString = function() | 6 WebInspector.PersistenceBinding.prototype.toString = function() |
| 7 { | 7 { |
| 8 var lines = [ | 8 var lines = [ |
| 9 "{", | 9 "{", |
| 10 " network: " + this.network.url(), | 10 " network: " + this.network.url(), |
| 11 " fileSystem: " + this.fileSystem.url(), | 11 " fileSystem: " + this.fileSystem.url(), |
| 12 " exactMatch: " + this.exactMatch, |
| 12 "}" | 13 "}" |
| 13 ]; | 14 ]; |
| 14 return lines.join("\n"); | 15 return lines.join("\n"); |
| 15 } | 16 } |
| 16 | 17 |
| 17 InspectorTest.waitForBinding = function(fileName) | 18 InspectorTest.waitForBinding = function(fileName) |
| 18 { | 19 { |
| 19 var uiSourceCodes = WebInspector.workspace.uiSourceCodes(); | 20 var uiSourceCodes = WebInspector.workspace.uiSourceCodes(); |
| 20 for (var uiSourceCode of uiSourceCodes) { | 21 for (var uiSourceCode of uiSourceCodes) { |
| 21 var binding = WebInspector.persistence.binding(uiSourceCode); | 22 var binding = WebInspector.persistence.binding(uiSourceCode); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 return uiSourceCode.name() === name && uiSourceCode.project().type() ===
projectType; | 66 return uiSourceCode.name() === name && uiSourceCode.project().type() ===
projectType; |
| 66 } | 67 } |
| 67 } | 68 } |
| 68 | 69 |
| 69 InspectorTest.addFooJSFile = function(fs) | 70 InspectorTest.addFooJSFile = function(fs) |
| 70 { | 71 { |
| 71 return fs.root.mkdir("inspector").mkdir("persistence").mkdir("resources").ad
dFile("foo.js", "window.foo = ()=>'foo';"); | 72 return fs.root.mkdir("inspector").mkdir("persistence").mkdir("resources").ad
dFile("foo.js", "window.foo = ()=>'foo';"); |
| 72 } | 73 } |
| 73 | 74 |
| 74 } | 75 } |
| OLD | NEW |