зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1446508 - clear runOnce state after every test. r=felipe
This commit is contained in:
Родитель
74b08e1309
Коммит
35691eca45
|
@ -16,7 +16,4 @@ add_task(async function test_runonce_helper() {
|
|||
|
||||
runOnce("test_action", callback);
|
||||
is(runCount, 1, "Callback didn't run again.");
|
||||
|
||||
// clean-up
|
||||
Services.prefs.clearUserPref("browser.policies.runonce.test_action");
|
||||
});
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
"use strict";
|
||||
|
||||
add_task(async function setup() {
|
||||
EnterprisePolicyTesting.resetRunOnceState();
|
||||
const expiry = Date.now() + 24 * 60 * 60;
|
||||
Services.cookies.add("example.com", "/", "secure", "true", true, false, false, expiry, {});
|
||||
Services.cookies.add("example.com", "/", "insecure", "true", false, false, false, expiry, {});
|
||||
|
@ -59,5 +58,4 @@ add_task(function teardown() {
|
|||
for (let host of ["example.com", "example.org", "example.net"]) {
|
||||
Services.cookies.removeCookiesWithOriginAttributes("{}", host);
|
||||
}
|
||||
EnterprisePolicyTesting.resetRunOnceState();
|
||||
});
|
||||
|
|
|
@ -10,7 +10,6 @@ const TOUCHED_PREFS = {
|
|||
"pref.browser.homepage.disable_button.current_page": "Bool",
|
||||
"pref.browser.homepage.disable_button.bookmark_page": "Bool",
|
||||
"pref.browser.homepage.disable_button.restore_default": "Bool",
|
||||
"browser.policies.runOncePerModification.setHomepage": "String",
|
||||
};
|
||||
let ORIGINAL_PREF_VALUE = {};
|
||||
|
||||
|
|
|
@ -26,4 +26,6 @@ registerCleanupFunction(async function policies_headjs_finishWithCleanSlate() {
|
|||
await setupPolicyEngineWithJson("");
|
||||
}
|
||||
is(Services.policies.status, Ci.nsIEnterprisePolicies.INACTIVE, "Engine is inactive at the end of the test");
|
||||
|
||||
EnterprisePolicyTesting.resetRunOnceState();
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче