зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 7f0e02401370 (bug 1543696) for browser-chrome failures at toolkit/components/extensions/test/browser/browser_ext_themes_warnings.js
This commit is contained in:
Родитель
46a844f04d
Коммит
f0a2b9f2fe
|
@ -3,11 +3,9 @@
|
|||
// This test checks whether the theme experiments work
|
||||
|
||||
add_task(async function setup() {
|
||||
if (AppConstants.MOZ_ALLOW_LEGACY_EXTENSIONS) {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["extensions.legacy.enabled", true]],
|
||||
});
|
||||
}
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["extensions.legacy.enabled", true]],
|
||||
});
|
||||
});
|
||||
|
||||
add_task(async function test_experiment_static_theme() {
|
||||
|
|
|
@ -73,11 +73,7 @@ add_task(async function test_dynamic_theme() {
|
|||
});
|
||||
|
||||
add_task(async function test_experiment() {
|
||||
if (AppConstants.MOZ_ALLOW_LEGACY_EXTENSIONS) {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["extensions.legacy.enabled", true]],
|
||||
});
|
||||
}
|
||||
Services.prefs.setBoolPref("extensions.legacy.enabled", true);
|
||||
|
||||
info("Testing that experiments are handled correctly when legacy pref is enabled");
|
||||
|
||||
|
@ -111,9 +107,7 @@ add_task(async function test_experiment() {
|
|||
|
||||
info("Testing that experiments are handled correctly when legacy pref is disabled");
|
||||
|
||||
if (AppConstants.MOZ_ALLOW_LEGACY_EXTENSIONS) {
|
||||
await SpecialPowers.popPrefEnv();
|
||||
}
|
||||
Services.prefs.setBoolPref("extensions.legacy.enabled", false);
|
||||
|
||||
extension = ExtensionTestUtils.loadExtension({
|
||||
manifest: {
|
||||
|
|
Загрузка…
Ссылка в новой задаче