зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1545124 - Disable add-on manager logging for some tests. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D27917 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
23851174aa
Коммит
0cd1778285
|
@ -103,7 +103,7 @@ var testData = [
|
|||
new keywordResult(null, null, true)],
|
||||
];
|
||||
|
||||
AddonTestUtils.init(this);
|
||||
AddonTestUtils.init(this, false);
|
||||
AddonTestUtils.overrideCertDB();
|
||||
AddonTestUtils.createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1", "42");
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ const {AddonTestUtils} = ChromeUtils.import("resource://testing-common/AddonTest
|
|||
const SUGGEST_PREF = "browser.urlbar.suggest.searches";
|
||||
const SUGGEST_ENABLED_PREF = "browser.search.suggest.enabled";
|
||||
|
||||
AddonTestUtils.init(this);
|
||||
AddonTestUtils.init(this, false);
|
||||
AddonTestUtils.overrideCertDB();
|
||||
AddonTestUtils.createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1", "42");
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ XPCOMUtils.defineLazyModuleGetters(this, {
|
|||
const TITLE_SEARCH_ENGINE_SEPARATOR = " \u00B7\u2013\u00B7 ";
|
||||
|
||||
const {AddonTestUtils} = ChromeUtils.import("resource://testing-common/AddonTestUtils.jsm");
|
||||
AddonTestUtils.init(this);
|
||||
AddonTestUtils.init(this, false);
|
||||
AddonTestUtils.createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "42", "42");
|
||||
|
||||
add_task(async function setup() {
|
||||
|
|
|
@ -16,7 +16,7 @@ var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
|||
// Put any other stuff relative to this test folder below.
|
||||
const {AddonTestUtils} = ChromeUtils.import("resource://testing-common/AddonTestUtils.jsm");
|
||||
|
||||
AddonTestUtils.init(this);
|
||||
AddonTestUtils.init(this, false);
|
||||
AddonTestUtils.overrideCertDB();
|
||||
AddonTestUtils.createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1", "42");
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ Services.prefs.setCharPref("browser.search.geoip.url", "");
|
|||
// Also disable region defaults - tests using it will also re-configure it.
|
||||
Services.prefs.getDefaultBranch(BROWSER_SEARCH_PREF).setCharPref("geoSpecificDefaults.url", "");
|
||||
|
||||
AddonTestUtils.init(this);
|
||||
AddonTestUtils.init(this, false);
|
||||
AddonTestUtils.createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "42", "42");
|
||||
|
||||
/**
|
||||
|
|
|
@ -274,7 +274,7 @@ var AddonTestUtils = {
|
|||
}
|
||||
},
|
||||
|
||||
init(testScope) {
|
||||
init(testScope, enableLogging = true) {
|
||||
if (this.testScope === testScope) {
|
||||
return;
|
||||
}
|
||||
|
@ -302,8 +302,10 @@ var AddonTestUtils = {
|
|||
this.registerDirectory("XREAddonAppDir", appDirForAddons);
|
||||
|
||||
|
||||
// Enable more extensive EM logging
|
||||
Services.prefs.setBoolPref("extensions.logging.enabled", true);
|
||||
// Enable more extensive EM logging.
|
||||
if (enableLogging) {
|
||||
Services.prefs.setBoolPref("extensions.logging.enabled", true);
|
||||
}
|
||||
|
||||
// By default only load extensions from the profile install location
|
||||
Services.prefs.setIntPref("extensions.enabledScopes", AddonManager.SCOPE_PROFILE);
|
||||
|
|
Загрузка…
Ссылка в новой задаче