Bug 1530799 - Replaced waitForCondition function with TestUtils.waitForCondition r=johannh
authorMinsoo Kim <mscs.kim@mail.utoronto.ca>
Wed, 06 Mar 2019 09:43:44 +0000
changeset 462603 f1dd1d737828a3a177a7d885bf0d2f8ed1e337e1
parent 462602 578e042ec884828152da1c5f0c556d44f8068f64
child 462604 2edf8ec64d183fdbdfa146f6a4a1c68273c4cd37
push id79742
push userarchaeopteryx@coole-files.de
push dateWed, 06 Mar 2019 12:48:54 +0000
treeherderautoland@f1dd1d737828 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1530799
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1530799 - Replaced waitForCondition function with TestUtils.waitForCondition r=johannh Differential Revision: https://phabricator.services.mozilla.com/D22041
browser/components/customizableui/test/browser_940307_panel_click_closure_handling.js
--- a/browser/components/customizableui/test/browser_940307_panel_click_closure_handling.js
+++ b/browser/components/customizableui/test/browser_940307_panel_click_closure_handling.js
@@ -27,17 +27,17 @@ add_task(async function searchbar_in_pan
   CustomizableUI.addWidgetToArea("search-container",
                                  CustomizableUI.AREA_FIXED_OVERFLOW_PANEL);
 
   await waitForOverflowButtonShown();
 
   await document.getElementById("nav-bar").overflowable.show();
 
   let searchbar = document.getElementById("searchbar");
-  await waitForCondition(() => "value" in searchbar && searchbar.value === "");
+  await TestUtils.waitForCondition(() => "value" in searchbar && searchbar.value === "");
 
   // Focusing a non-empty searchbox will cause us to open the
   // autocomplete panel and search for suggestions, which would
   // trigger network requests. Temporarily disable suggestions.
   await SpecialPowers.pushPrefEnv({set: [["browser.search.suggest.enabled", false]]});
   let dontShowPopup = e => e.preventDefault();
   let searchbarPopup = searchbar.textbox.popup;
   searchbarPopup.addEventListener("popupshowing", dontShowPopup);