summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/extensions/test/AddonManagerTesting.jsm
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/mozapps/extensions/test/AddonManagerTesting.jsm')
-rw-r--r--toolkit/mozapps/extensions/test/AddonManagerTesting.jsm14
1 files changed, 2 insertions, 12 deletions
diff --git a/toolkit/mozapps/extensions/test/AddonManagerTesting.jsm b/toolkit/mozapps/extensions/test/AddonManagerTesting.jsm
index eb9a92195..52c954b1a 100644
--- a/toolkit/mozapps/extensions/test/AddonManagerTesting.jsm
+++ b/toolkit/mozapps/extensions/test/AddonManagerTesting.jsm
@@ -8,7 +8,7 @@
"use strict";
this.EXPORTED_SYMBOLS = [
- "AddonManagerTesting",
+ "AddonTestUtils",
];
const {utils: Cu} = Components;
@@ -19,17 +19,7 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "AddonManager",
"resource://gre/modules/AddonManager.jsm");
-this.AddonManagerTesting = {
- /**
- * Get the add-on that is specified by its ID.
- *
- * @return {Promise<Object>} A promise that resolves returning the found addon or null
- * if it is not found.
- */
- getAddonById: function (id) {
- return new Promise(resolve => AddonManager.getAddonByID(id, addon => resolve(addon)));
- },
-
+this.AddonTestUtils = {
/**
* Uninstall an add-on that is specified by its ID.
*