From 50244b7020d5e2d190a63f7f9bc6c1dbbfcba06b Mon Sep 17 00:00:00 2001 From: Trisha Date: Tue, 13 Mar 2018 16:02:55 +0800 Subject: [PATCH] Bug 1443866 - Use TestUtils.waitForCondition in browser_devices_get_user_media_multi_process.js. r=johannh --- .../webrtc/browser_devices_get_user_media_multi_process.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/base/content/test/webrtc/browser_devices_get_user_media_multi_process.js b/browser/base/content/test/webrtc/browser_devices_get_user_media_multi_process.js index 935940ae84d2..358cbf78b2c9 100644 --- a/browser/base/content/test/webrtc/browser_devices_get_user_media_multi_process.js +++ b/browser/base/content/test/webrtc/browser_devices_get_user_media_multi_process.js @@ -89,7 +89,7 @@ var gTests = [ await BrowserTestUtils.removeTab(tab); // Check that we still show the sharing indicators for the first tab's stream. - await promiseWaitForCondition(() => !webrtcUI.showCameraIndicator); + await TestUtils.waitForCondition(() => !webrtcUI.showCameraIndicator); ok(webrtcUI.showGlobalIndicator, "webrtcUI wants the global indicator shown"); ok(!webrtcUI.showCameraIndicator, "webrtcUI wants the camera indicator hidden"); ok(webrtcUI.showMicrophoneIndicator, "webrtcUI wants the mic indicator shown"); @@ -192,7 +192,7 @@ var gTests = [ await BrowserTestUtils.removeTab(tab); // Check that we still show the sharing indicators for the first tab's stream. - await promiseWaitForCondition(() => webrtcUI.showCameraIndicator); + await TestUtils.waitForCondition(() => webrtcUI.showCameraIndicator); ok(webrtcUI.showGlobalIndicator, "webrtcUI wants the global indicator shown"); ok(webrtcUI.showCameraIndicator, "webrtcUI wants the camera indicator shown"); ok(!webrtcUI.showMicrophoneIndicator, "webrtcUI wants the mic indicator hidden");