summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/extensions/test/xpcshell
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-28 12:47:07 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-28 12:47:07 +0200
commit77e7fcac500629602059ad573c4ff6a9ff4d93b7 (patch)
tree48b586887c5e0dd11f0acfe381f4c4e1b5dc7cb7 /toolkit/mozapps/extensions/test/xpcshell
parentb8145b3d592cf0290cc17a6223816b817e3e3b77 (diff)
downloadUXP-77e7fcac500629602059ad573c4ff6a9ff4d93b7.tar
UXP-77e7fcac500629602059ad573c4ff6a9ff4d93b7.tar.gz
UXP-77e7fcac500629602059ad573c4ff6a9ff4d93b7.tar.lz
UXP-77e7fcac500629602059ad573c4ff6a9ff4d93b7.tar.xz
UXP-77e7fcac500629602059ad573c4ff6a9ff4d93b7.zip
Bug 1263935 - Forward AddonManager.mapURIToAddonId to AddonPathService.mapURIToAddonId
Issue #102
Diffstat (limited to 'toolkit/mozapps/extensions/test/xpcshell')
-rw-r--r--toolkit/mozapps/extensions/test/xpcshell/test_mapURIToAddonID.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/toolkit/mozapps/extensions/test/xpcshell/test_mapURIToAddonID.js b/toolkit/mozapps/extensions/test/xpcshell/test_mapURIToAddonID.js
index a6f9c8052..a153256dc 100644
--- a/toolkit/mozapps/extensions/test/xpcshell/test_mapURIToAddonID.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_mapURIToAddonID.js
@@ -95,8 +95,10 @@ function run_test_early() {
"resource://gre/modules/addons/XPIProvider.jsm", {});
// Make the early API call.
- do_check_null(s.XPIProvider.mapURIToAddonID(uri));
+ // AddonManager still misses its provider and so doesn't work yet.
do_check_null(AddonManager.mapURIToAddonID(uri));
+ // But calling XPIProvider directly works immediately
+ do_check_eq(s.XPIProvider.mapURIToAddonID(uri), id);
// Actually start up the manager.
startupManager(false);