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

Unified Diff: qunit/tests/prefs.js

Issue 29570614: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Rebase Created Oct. 13, 2017, 7:59 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: qunit/tests/prefs.js
===================================================================
--- a/qunit/tests/prefs.js
+++ b/qunit/tests/prefs.js
@@ -22,28 +22,28 @@
Prefs[pref] = this._pbackup[pref];
}
});
function checkPrefExists(name, expectedValue, description, assert)
{
let done = assert.async();
let key = "pref:" + name;
- chrome.storage.local.get(key, items =>
+ browser.storage.local.get(key, items =>
{
equal(key in items, expectedValue, description);
done();
});
}
function checkPref(name, expectedValue, description, assert)
{
let done = assert.async();
let key = "pref:" + name;
- chrome.storage.local.get(key, items =>
+ browser.storage.local.get(key, items =>
{
deepEqual(items[key], expectedValue, description);
done();
});
}
test("Numerical pref", assert =>
{
« lib/notificationHelper.js ('K') | « popup.js ('k') | subscriptionLink.postload.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld