Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: qunit/tests/prefs.js

Issue 29592604: Issue 5957 - Get the unit tests passing again (Closed)
Patch Set: Created Oct. 30, 2017, 2:53 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « qunit/tests/filterValidation.js ('k') | qunit/tests/url.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 "use strict"; 1 "use strict";
2 2
3 { 3 {
4 const {Prefs} = require("prefs"); 4 const {Prefs} = require("prefs");
5 5
6 module("Preferences", { 6 QUnit.module("Preferences", {
7 setup() 7 setup()
8 { 8 {
9 this._pbackup = Object.create(null); 9 this._pbackup = Object.create(null);
10 for (let pref in Prefs) 10 for (let pref in Prefs)
11 { 11 {
12 let value = Prefs[pref]; 12 let value = Prefs[pref];
13 this._pbackup[pref] = value; 13 this._pbackup[pref] = value;
14 } 14 }
15 Prefs.enabled = true; 15 Prefs.enabled = true;
16 }, 16 },
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 delete Prefs.notificationdata.foo; 153 delete Prefs.notificationdata.foo;
154 delete Prefs.notificationdata.bar; 154 delete Prefs.notificationdata.bar;
155 Prefs.notificationdata = JSON.parse(JSON.stringify(Prefs.notificationdata)); 155 Prefs.notificationdata = JSON.parse(JSON.stringify(Prefs.notificationdata));
156 deepEqual( 156 deepEqual(
157 Prefs.notificationdata, {}, 157 Prefs.notificationdata, {},
158 "Prefs object returns the correct value after setting pref to " + 158 "Prefs object returns the correct value after setting pref to " +
159 "default value" 159 "default value"
160 ); 160 );
161 }); 161 });
162 } 162 }
OLDNEW
« no previous file with comments | « qunit/tests/filterValidation.js ('k') | qunit/tests/url.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld