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: Use polyfill.js Created Oct. 10, 2017, 10:15 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
« no previous file with comments | « popup.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 =>
{
« no previous file with comments | « popup.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld