Bug 1127580 - mozmill/content-policy/test-general-content-policy.js transition timing improvement. r=mkmelin a=rkent
authoralta88
Sat, 05 Sep 2015 13:12:34 -0600
changeset 26395 d796372149d321b5374db1e395f473b6c74e4dc6
parent 26394 b7780e495c67fd9b6b49e39154506721e39e72fa
child 26396 aa4e7f50b9c8b8ae7c621c965e79d648c3bb7deb
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin, rkent
bugs1127580
Bug 1127580 - mozmill/content-policy/test-general-content-policy.js transition timing improvement. r=mkmelin a=rkent
mail/test/mozmill/shared-modules/test-window-helpers.js
--- a/mail/test/mozmill/shared-modules/test-window-helpers.js
+++ b/mail/test/mozmill/shared-modules/test-window-helpers.js
@@ -955,19 +955,19 @@ var AugmentEverybodyWith = {
      *
      * @return  An array of popup elements that were left open. It will be
      *          an empty array if aKeepOpen was set to false.
      */
     click_menus_in_sequence: function _click_menus(aRootPopup, aActions, aKeepOpen) {
       if (aRootPopup.state == "closed")
         aRootPopup.openPopup(null, "", 0, 0, true, true);
       if (aRootPopup.state != "open") { // handle "showing"
-        utils.waitFor(function() { return aRootPopup.state == "open"; },
+        utils.waitFor(() => aRootPopup.state == "open",
                       "Popup never opened! id=" + aRootPopup.id +
-                      ", state=" + aRootPopup.state, 5000, 50);
+                      ", state=" + aRootPopup.state);
       }
       // These popups sadly do not close themselves, so we need to keep track
       // of them so we can make sure they end up closed.
       let closeStack = [aRootPopup];
 
       let curPopup = aRootPopup;
       for each (let [iAction, actionObj] in Iterator(aActions)) {
         /**