mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1083989 - Adapting e10s mochitests that expect Promise.jsm in the scope. r=yoric
This commit is contained in:
parent
98825457af
commit
6a77b8e610
@ -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";
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user