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:
Coroiu Cristina 2019-04-13 12:59:58 +03:00
Родитель 46a844f04d
Коммит f0a2b9f2fe
2 изменённых файлов: 5 добавлений и 13 удалений

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

@ -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: {