mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Bug 1144231 - browser_polaris_prefs.js doesn't cleanup the preference at the end of the test. r=jmaher
This commit is contained in:
parent
20bcaaf77b
commit
7306d707ec
@ -41,6 +41,15 @@ add_task(function* test_changing_pref_changes_tracking() {
|
||||
ok(true, "Skipping test, not Nightly")
|
||||
return;
|
||||
}
|
||||
|
||||
// Register a cleanup function for all the prefs affected by this entire test file.
|
||||
registerCleanupFunction(function () {
|
||||
Services.prefs.clearUserPref(POLARIS_ENABLED);
|
||||
for (let pref of prefs) {
|
||||
Services.prefs.clearUserPref(pref);
|
||||
}
|
||||
});
|
||||
|
||||
function* testPref(pref) {
|
||||
Services.prefs.setBoolPref(POLARIS_ENABLED, true);
|
||||
yield assertPref(pref, true);
|
||||
|
Loading…
Reference in New Issue
Block a user