const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components; Cu.import("resource://gre/modules/XPCOMUtils.jsm"); Cu.import("resource://gre/modules/Services.jsm"); XPCOMUtils.defineLazyGetter(this, "FxAccountsCommon", function() { return Components.utils.import("resource://gre/modules/FxAccountsCommon.js", {}); }); do_get_profile(); // fxa needs a profile directory for storage. // ================================================ // Load mocking/stubbing library, sinon // docs: http://sinonjs.org/releases/v2.3.2/ Cu.import("resource://gre/modules/Timer.jsm"); Services.scriptloader.loadSubScript("resource://testing-common/sinon-2.3.2.js", this); /* globals sinon */ // ================================================