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

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

Issue 29581937: Noissue - Use anonymous blocks instead of anonymous functions (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created Oct. 18, 2017, 2:10 a.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 (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
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 }
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