Bug 1083989 - Adapting e10s mochitests that expect Promise.jsm in the scope. r=yoric

This commit is contained in:
David Rajchenbach-Teller 2014-10-30 23:39:48 +01:00
parent 98825457af
commit 6a77b8e610
2 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,8 @@
let tmp = {};
Cu.import("resource:///modules/translation/Translation.jsm", tmp);
let {Translation} = tmp;
Cu.import("resource://gre/modules/Promise.jsm", tmp);
let {Translation, Promise} = tmp;
const kLanguagesPref = "browser.translation.neverForLanguages";
const kShowUIPref = "browser.translation.ui.show";

View File

@ -14,6 +14,7 @@ const PREF_METADATA_LASTUPDATE = "extensions.getAddons.cache.lastUpdate";
let repo = {};
Components.utils.import("resource://gre/modules/addons/AddonRepository.jsm", repo);
Components.utils.import("resource://gre/modules/Promise.jsm", this);
/**
* Test add-ons: