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

Delta Between Two Patch Sets: qunit/tests/prefs.js

Issue 29713631: Issue 5760 - Use relative require paths (Closed)
Left Patch Set: Created March 3, 2018, 4:09 a.m.
Right Patch Set: Address PS4 comments, rebase Created April 5, 2018, 11:09 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « qunit/tests/filterValidation.js ('k') | qunit/tests/url.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 "use strict"; 1 "use strict";
2 2
3 { 3 {
4 const {Prefs} = require("prefs"); 4 const {Prefs} = require("../../lib/prefs");
5 5
6 QUnit.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 }
(...skipping 138 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 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld