summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/extensions/test/xpcshell/test_installOrigins.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/mozapps/extensions/test/xpcshell/test_installOrigins.js')
-rw-r--r--toolkit/mozapps/extensions/test/xpcshell/test_installOrigins.js16
1 files changed, 7 insertions, 9 deletions
diff --git a/toolkit/mozapps/extensions/test/xpcshell/test_installOrigins.js b/toolkit/mozapps/extensions/test/xpcshell/test_installOrigins.js
index 7ef584b54d..0b1690f5a8 100644
--- a/toolkit/mozapps/extensions/test/xpcshell/test_installOrigins.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_installOrigins.js
@@ -179,7 +179,7 @@ function testInstallEvent(expectTelemetry) {
let events = snapshot.parent
.filter(
- ([timestamp, category, method, object, value, extra]) =>
+ ([, category, method, , , extra]) =>
category === "addonsManager" &&
method == "install" &&
extra.step == expectTelemetry.step
@@ -229,15 +229,13 @@ function promiseCompleteWebInstall(
installInfo.install();
});
- TestUtils.topicObserved("addon-install-confirmation").then(
- (subject, data) => {
- info(`==== test got addon-install-confirmation`);
- let installInfo = subject.wrappedJSObject;
- for (let installer of installInfo.installs) {
- installer.install();
- }
+ TestUtils.topicObserved("addon-install-confirmation").then(subject => {
+ info(`==== test got addon-install-confirmation`);
+ let installInfo = subject.wrappedJSObject;
+ for (let installer of installInfo.installs) {
+ installer.install();
}
- );
+ });
TestUtils.topicObserved("webextension-permission-prompt").then(
([subject]) => {
const { info } = subject.wrappedJSObject || {};