This was done using the script at:
bc5629735d/processors/add-task-async.jsm
MozReview-Commit-ID: KxuS9Cen87
14 lines
426 B
JavaScript
14 lines
426 B
JavaScript
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
|
|
ChromeUtils.import("resource://gre/modules/Services.jsm");
|
|
|
|
|
|
// Load mocking/stubbing library, sinon
|
|
// docs: http://sinonjs.org/docs/
|
|
/* global sinon */
|
|
Services.scriptloader.loadSubScript("resource://testing-common/sinon-2.3.2.js");
|
|
|
|
registerCleanupFunction(async function() {
|
|
// Cleanup window or the test runner will throw an error
|
|
delete window.sinon;
|
|
});
|