Bug 1530181 - Replaces promiseWaitForCondition with TestUtils.waitForCondition. r=johannh
authordanielleleb <danielleleb12@gmail.com>
Mon, 25 Feb 2019 19:01:53 +0000
changeset 518923 c0df44b239b51a159441cbc04bdf954ec334e385
parent 518922 758cf7b85e44892add9477895caa84448dc0cff5
child 518924 ccfe228bff77703ea43e78e8107222736e389998
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
bugs1530181
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 1530181 - Replaces promiseWaitForCondition with TestUtils.waitForCondition. r=johannh Differential Revision: https://phabricator.services.mozilla.com/D21034
browser/base/content/test/general/browser_bug1015721.js
--- a/browser/base/content/test/general/browser_bug1015721.js
+++ b/browser/base/content/test/general/browser_bug1015721.js
@@ -27,17 +27,17 @@ function zoomTab1() {
     FullZoomHelper.zoomTest(gTab2, 1, "Initial zoom of tab 2 should be 1");
 
     let browser1 = gBrowser.getBrowserForTab(gTab1);
     await BrowserTestUtils.synthesizeMouse(null, 10, 10, {
       wheel: true, ctrlKey: true, deltaY: -1, deltaMode: WheelEvent.DOM_DELTA_LINE,
     }, browser1);
 
     info("Waiting for tab 1 to be zoomed");
-    await promiseWaitForCondition(() => {
+    await TestUtils.waitForCondition(() => {
       gLevel1 = ZoomManager.getZoomForBrowser(browser1);
       return gLevel1 > 1;
     });
 
     await FullZoomHelper.selectTabAndWaitForLocationChange(gTab2);
     FullZoomHelper.zoomTest(gTab2, gLevel1, "Tab 2 should have zoomed along with tab 1");
   })().then(finishTest, FullZoomHelper.failAndContinue(finish));
 }