Bug 1543696 - Don't set extensions.legacy.enabled on beta in browser_ext_themes_experiment.js. r=kmag

Differential Revision: https://phabricator.services.mozilla.com/D27153

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tim Nguyen 2019-04-12 19:20:47 +00:00
Родитель 564703e75c
Коммит 46a844f04d
2 изменённых файлов: 13 добавлений и 5 удалений

Просмотреть файл

@ -3,9 +3,11 @@
// This test checks whether the theme experiments work
add_task(async function setup() {
await SpecialPowers.pushPrefEnv({
set: [["extensions.legacy.enabled", true]],
});
if (AppConstants.MOZ_ALLOW_LEGACY_EXTENSIONS) {
await SpecialPowers.pushPrefEnv({
set: [["extensions.legacy.enabled", true]],
});
}
});
add_task(async function test_experiment_static_theme() {

Просмотреть файл

@ -73,7 +73,11 @@ add_task(async function test_dynamic_theme() {
});
add_task(async function test_experiment() {
Services.prefs.setBoolPref("extensions.legacy.enabled", true);
if (AppConstants.MOZ_ALLOW_LEGACY_EXTENSIONS) {
await SpecialPowers.pushPrefEnv({
set: [["extensions.legacy.enabled", true]],
});
}
info("Testing that experiments are handled correctly when legacy pref is enabled");
@ -107,7 +111,9 @@ add_task(async function test_experiment() {
info("Testing that experiments are handled correctly when legacy pref is disabled");
Services.prefs.setBoolPref("extensions.legacy.enabled", false);
if (AppConstants.MOZ_ALLOW_LEGACY_EXTENSIONS) {
await SpecialPowers.popPrefEnv();
}
extension = ExtensionTestUtils.loadExtension({
manifest: {