| 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 Runtime.experiments.enableForTest("persistenceValidation"); | 6 Runtime.experiments.enableForTest("persistenceValidation"); |
| 7 | 7 |
| 8 Persistence.PersistenceBinding.prototype.toString = function() | 8 Persistence.PersistenceBinding.prototype.toString = function() |
| 9 { | 9 { |
| 10 var lines = [ | 10 var lines = [ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 | 44 |
| 45 InspectorTest.addFooJSFile = function(fs) | 45 InspectorTest.addFooJSFile = function(fs) |
| 46 { | 46 { |
| 47 return fs.root.mkdir("inspector").mkdir("persistence").mkdir("resources").ad
dFile("foo.js", "\n\nwindow.foo = ()=>'foo';"); | 47 return fs.root.mkdir("inspector").mkdir("persistence").mkdir("resources").ad
dFile("foo.js", "\n\nwindow.foo = ()=>'foo';"); |
| 48 } | 48 } |
| 49 | 49 |
| 50 InspectorTest.forceUseDefaultMapping = function() { | 50 InspectorTest.forceUseDefaultMapping = function() { |
| 51 Persistence.persistence._setMappingForTest((bindingCreated, bindingRemoved)
=> { | 51 Persistence.persistence._setMappingForTest((bindingCreated, bindingRemoved)
=> { |
| 52 return new Persistence.DefaultMapping(Workspace.workspace, Workspace.fil
eSystemMapping, bindingCreated, bindingRemoved); | 52 return new Persistence.DefaultMapping(Workspace.workspace, Persistence.f
ileSystemMapping, bindingCreated, bindingRemoved); |
| 53 }); | 53 }); |
| 54 } | 54 } |
| 55 | 55 |
| 56 InspectorTest.initializeTestMapping = function() { | 56 InspectorTest.initializeTestMapping = function() { |
| 57 var testMapping; | 57 var testMapping; |
| 58 Persistence.persistence._setMappingForTest((bindingCreated, bindingRemoved)
=> { | 58 Persistence.persistence._setMappingForTest((bindingCreated, bindingRemoved)
=> { |
| 59 testMapping = new TestMapping(bindingCreated, bindingRemoved); | 59 testMapping = new TestMapping(bindingCreated, bindingRemoved); |
| 60 return testMapping; | 60 return testMapping; |
| 61 }); | 61 }); |
| 62 return testMapping; | 62 return testMapping; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 } | 103 } |
| 104 | 104 |
| 105 dispose() { | 105 dispose() { |
| 106 for (var binding of this._bindings) | 106 for (var binding of this._bindings) |
| 107 this._onBindingRemoved.call(null, binding); | 107 this._onBindingRemoved.call(null, binding); |
| 108 this._bindings.clear(); | 108 this._bindings.clear(); |
| 109 } | 109 } |
| 110 } | 110 } |
| 111 | 111 |
| 112 } | 112 } |
| OLD | NEW |