Bug 1530778 - Replace waitForCondition in browser_88502_customize_mode_observers_disabed.js with TestUtils.waitForCondition. r=johannh
authorAmberM <aiyemacbain@gmail.com>
Mon, 04 Mar 2019 12:40:31 +0000
changeset 520119 2e89b1f1e01c37b604bc37c2cdc41b30698f73fb
parent 520118 0ecb667b6b046767759ca6fda321d5ee2385d3e6
child 520120 b6c437beca6240f394f7d0c7d5631278f64b499d
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1530778
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 1530778 - Replace waitForCondition in browser_88502_customize_mode_observers_disabed.js with TestUtils.waitForCondition. r=johannh Differential Revision: https://phabricator.services.mozilla.com/D21849
browser/components/customizableui/test/browser_885052_customize_mode_observers_disabed.js
--- a/browser/components/customizableui/test/browser_885052_customize_mode_observers_disabed.js
+++ b/browser/components/customizableui/test/browser_885052_customize_mode_observers_disabed.js
@@ -21,27 +21,27 @@ add_task(async function() {
   // Hide it again.
   document.getElementById("widget-overflow").hidePopup();
 
   let fullscreenButton = document.getElementById("fullscreen-button");
   ok(!fullscreenButton.checked, "Fullscreen button should not be checked when not in fullscreen.");
   ok(!isFullscreenSizeMode(), "Should not be in fullscreen sizemode before we enter fullscreen.");
 
   BrowserFullScreen();
-  await waitForCondition(() => isFullscreenSizeMode());
+  await TestUtils.waitForCondition(() => isFullscreenSizeMode());
   ok(fullscreenButton.checked, "Fullscreen button should be checked when in fullscreen.");
 
   await startCustomizing();
 
   let fullscreenButtonWrapper = document.getElementById("wrapper-fullscreen-button");
   ok(fullscreenButtonWrapper.hasAttribute("itemobserves"), "Observer should be moved to wrapper");
   fullscreenButton = document.getElementById("fullscreen-button");
   ok(!fullscreenButton.hasAttribute("observes"), "Observer should be removed from button");
   ok(!fullscreenButton.checked, "Fullscreen button should no longer be checked during customization mode");
 
   await endCustomizing();
 
   BrowserFullScreen();
   fullscreenButton = document.getElementById("fullscreen-button");
-  await waitForCondition(() => !isFullscreenSizeMode());
+  await TestUtils.waitForCondition(() => !isFullscreenSizeMode());
   ok(!fullscreenButton.checked, "Fullscreen button should not be checked when not in fullscreen.");
   CustomizableUI.reset();
 });