Bug 1443828 Replace promiseWaitForCondition with TestUtils.waitForCondition in browser_devices_get_user_media.js draft
authorkanika <kanika16047@iiitd.ac.in>
Thu, 08 Mar 2018 23:15:15 +0530
changeset 764949 62661d82bb1c07793e639c50a6e34b0a5fe55be7
parent 764770 a6a32fb286fa9e5d5f6d5b3b77423ab6b96c9502
push id101907
push userbmo:kanika16047@iiitd.ac.in
push dateThu, 08 Mar 2018 17:50:40 +0000
bugs1443828
milestone60.0a1
Bug 1443828 Replace promiseWaitForCondition with TestUtils.waitForCondition in browser_devices_get_user_media.js MozReview-Commit-ID: KyYHBCf4s10
browser/base/content/test/webrtc/browser_devices_get_user_media.js
--- a/browser/base/content/test/webrtc/browser_devices_get_user_media.js
+++ b/browser/base/content/test/webrtc/browser_devices_get_user_media.js
@@ -510,17 +510,17 @@ var gTests = [
     if ("nsISystemStatusBar" in Ci) {
       let activeStreams = webrtcUI.getActiveStreams(true, false, false);
       webrtcUI.showSharingDoorhanger(activeStreams[0]);
     } else {
       let win =
         Services.wm.getMostRecentWindow("Browser:WebRTCGlobalIndicator");
       let elt = win.document.getElementById("audioVideoButton");
       EventUtils.synthesizeMouseAtCenter(elt, {}, win);
-      await promiseWaitForCondition(() => !gIdentityHandler._identityPopup.hidden);
+      await TestUtils.waitForCondition(() => !gIdentityHandler._identityPopup.hidden);
     }
     ok(!gIdentityHandler._identityPopup.hidden, "control center should be open");
 
     gIdentityHandler._identityPopup.hidden = true;
     await expectNoObserverCalled();
 
     await closeStream();
   }