| 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 Persistence.PersistenceBinding.prototype.toString = function() | 6 Persistence.PersistenceBinding.prototype.toString = function() |
| 7 { | 7 { |
| 8 var lines = [ | 8 var lines = [ |
| 9 "{", | 9 "{", |
| 10 " network: " + this.network.url(), | 10 " network: " + this.network.url(), |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 Workspace.workspace.removeEventListener(Workspace.Workspace.Events.UISou
rceCodeAdded, onUISourceCode); | 60 Workspace.workspace.removeEventListener(Workspace.Workspace.Events.UISou
rceCodeAdded, onUISourceCode); |
| 61 fulfill(uiSourceCode); | 61 fulfill(uiSourceCode); |
| 62 } | 62 } |
| 63 | 63 |
| 64 function filterCode(uiSourceCode) | 64 function filterCode(uiSourceCode) |
| 65 { | 65 { |
| 66 return uiSourceCode.name() === name && uiSourceCode.project().type() ===
projectType; | 66 return uiSourceCode.name() === name && uiSourceCode.project().type() ===
projectType; |
| 67 } | 67 } |
| 68 } | 68 } |
| 69 | 69 |
| 70 InspectorTest.fooJSContent = "\n\nwindow.foo = ()=>'foo';"; |
| 71 |
| 70 InspectorTest.addFooJSFile = function(fs) | 72 InspectorTest.addFooJSFile = function(fs) |
| 71 { | 73 { |
| 72 return fs.root.mkdir("inspector").mkdir("persistence").mkdir("resources").ad
dFile("foo.js", "\n\nwindow.foo = ()=>'foo';"); | 74 return fs.root.mkdir("inspector").mkdir("persistence").mkdir("resources").ad
dFile("foo.js", InspectorTest.fooJSContent); |
| 73 } | 75 } |
| 74 | 76 |
| 75 } | 77 } |
| OLD | NEW |