зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1258858: Fix harmless console errors in test_webextension.js. r=aswan
MozReview-Commit-ID: aDNfOANJOO --HG-- extra : rebase_source : ce5dc8d483fb367c70bbb34dc9e24e6fda530ad2
This commit is contained in:
Родитель
81f81cd352
Коммит
ff74727859
|
@ -1742,7 +1742,6 @@ function promiseInstallAllFiles(aFiles, aIgnoreIncompatible) {
|
|||
let deferred = Promise.defer();
|
||||
installAllFiles(aFiles, deferred.resolve, aIgnoreIncompatible);
|
||||
return deferred.promise;
|
||||
|
||||
}
|
||||
|
||||
if ("nsIWindowsRegKey" in AM_Ci) {
|
||||
|
|
|
@ -163,8 +163,10 @@ add_task(function* test_manifest_localization() {
|
|||
const ID = "webextension3@tests.mozilla.org";
|
||||
|
||||
yield promiseInstallAllFiles([do_get_addon("webextension_3")], true);
|
||||
yield promiseAddonStartup();
|
||||
|
||||
let addon = yield promiseAddonByID(ID);
|
||||
addon.userDisabled = true;
|
||||
|
||||
equal(addon.name, "Web Extensiøn foo ☹");
|
||||
equal(addon.description, "Descriptïon bar ☹ of add-on");
|
||||
|
@ -184,6 +186,8 @@ add_task(function* test_manifest_localization() {
|
|||
|
||||
equal(addon.name, "Web Extensiøn foo ☹");
|
||||
equal(addon.description, "Descriptïon bar ☹ of add-on");
|
||||
|
||||
addon.uninstall();
|
||||
});
|
||||
|
||||
// Missing ID should cause a failure
|
||||
|
|
Загрузка…
Ссылка в новой задаче