Bug 1252215 - [webext] Fix promiseAddonStartup defined in xpcshell tests. r=kmag, a=ritu
authorLuca Greco <lgreco@mozilla.com>
Thu, 01 Sep 2016 19:42:41 +0200
changeset 350259 c3bd6ceb6fc2338ff649dd0e8ca5505671090fe4
parent 350258 352666cdee72996c02990b0b19bd5d1d77ba54d0
child 350260 9ca6bbc6fdb3fc319050026ac09b9a085498f336
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskmag, ritu
bugs1252215
milestone50.0a2
Bug 1252215 - [webext] Fix promiseAddonStartup defined in xpcshell tests. r=kmag, a=ritu MozReview-Commit-ID: BXYXHDrG6zL
toolkit/mozapps/extensions/test/xpcshell/test_webextension.js
toolkit/mozapps/extensions/test/xpcshell/test_webextension_icons.js
--- a/toolkit/mozapps/extensions/test/xpcshell/test_webextension.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_webextension.js
@@ -11,17 +11,17 @@ profileDir.append("extensions");
 
 createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1", "42");
 startupManager();
 
 const { GlobalManager, Management } = Components.utils.import("resource://gre/modules/Extension.jsm", {});
 
 function promiseAddonStartup() {
   return new Promise(resolve => {
-    let listener = (extension) => {
+    let listener = (evt, extension) => {
       Management.off("startup", listener);
       resolve(extension);
     };
 
     Management.on("startup", listener);
   });
 }
 
--- a/toolkit/mozapps/extensions/test/xpcshell/test_webextension_icons.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_webextension_icons.js
@@ -10,17 +10,17 @@ profileDir.create(AM_Ci.nsIFile.DIRECTOR
 
 createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1", "42");
 startupManager();
 
 const { Management } = Components.utils.import("resource://gre/modules/Extension.jsm", {});
 
 function promiseAddonStartup() {
   return new Promise(resolve => {
-    let listener = (extension) => {
+    let listener = (evt, extension) => {
       Management.off("startup", listener);
       resolve(extension);
     };
 
     Management.on("startup", listener);
   });
 }