| OLD | NEW |
| 1 "use strict"; | 1 "use strict"; |
| 2 | 2 |
| 3 (function() | |
| 4 { | 3 { |
| 5 const {Prefs} = require("prefs"); | 4 const {Prefs} = require("prefs"); |
| 6 | 5 |
| 7 module("Preferences", { | 6 module("Preferences", { |
| 8 setup() | 7 setup() |
| 9 { | 8 { |
| 10 this._pbackup = Object.create(null); | 9 this._pbackup = Object.create(null); |
| 11 for (let pref in Prefs) | 10 for (let pref in Prefs) |
| 12 { | 11 { |
| 13 let value = Prefs[pref]; | 12 let value = Prefs[pref]; |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 152 |
| 154 delete Prefs.notificationdata.foo; | 153 delete Prefs.notificationdata.foo; |
| 155 delete Prefs.notificationdata.bar; | 154 delete Prefs.notificationdata.bar; |
| 156 Prefs.notificationdata = JSON.parse(JSON.stringify(Prefs.notificationdata)); | 155 Prefs.notificationdata = JSON.parse(JSON.stringify(Prefs.notificationdata)); |
| 157 deepEqual( | 156 deepEqual( |
| 158 Prefs.notificationdata, {}, | 157 Prefs.notificationdata, {}, |
| 159 "Prefs object returns the correct value after setting pref to " + | 158 "Prefs object returns the correct value after setting pref to " + |
| 160 "default value" | 159 "default value" |
| 161 ); | 160 ); |
| 162 }); | 161 }); |
| 163 }()); | 162 } |
| OLD | NEW |