зеркало из https://github.com/mozilla/gecko-dev.git
Bug 777989 - Make Add-on sync TPS tests work again; r=rnewman
This commit is contained in:
Родитель
bad6844078
Коммит
035c4e7987
|
@ -10,6 +10,7 @@ const {interfaces: Ci, utils: Cu} = Components;
|
|||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://services-common/log4moz.js");
|
||||
Cu.import("resource://services-sync/util.js");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "AddonManager",
|
||||
"resource://gre/modules/AddonManager.jsm");
|
||||
|
@ -18,6 +19,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "AddonRepository",
|
|||
|
||||
function AddonUtilsInternal() {
|
||||
this._log = Log4Moz.repository.getLogger("Sync.AddonUtils");
|
||||
this._log.Level = Log4Moz.Level[Svc.Prefs.get("log.logger.addonutils")];
|
||||
}
|
||||
AddonUtilsInternal.prototype = {
|
||||
/**
|
||||
|
|
|
@ -54,6 +54,7 @@ pref("services.sync.log.appender.file.logOnError", true);
|
|||
pref("services.sync.log.appender.file.logOnSuccess", false);
|
||||
pref("services.sync.log.appender.file.maxErrorAge", 864000); // 10 days
|
||||
pref("services.sync.log.rootLogger", "Debug");
|
||||
pref("services.sync.log.logger.addonutils", "Debug");
|
||||
pref("services.sync.log.logger.service.main", "Debug");
|
||||
pref("services.sync.log.logger.status", "Debug");
|
||||
pref("services.sync.log.logger.authenticator", "Debug");
|
||||
|
|
|
@ -96,7 +96,7 @@ Addon.prototype = {
|
|||
// for the addon's install .xml; we'll read the actual id from the .xml.
|
||||
|
||||
let cb = Async.makeSpinningCallback();
|
||||
AddonUtils.installAddons([{id: this.id}], cb);
|
||||
AddonUtils.installAddons([{id: this.id, requireSecureURI: false}], cb);
|
||||
let result = cb.wait();
|
||||
|
||||
Logger.AssertEqual(1, result.installedIDs.length, "Exactly 1 add-on was installed.");
|
||||
|
|
Загрузка…
Ссылка в новой задаче