From 3976d04ec776943c2f144b3af4ea323528ecbc50 Mon Sep 17 00:00:00 2001 From: Arshad Kazmi Date: Sun, 26 Aug 2018 21:04:27 +0300 Subject: [PATCH] Bug 1443861 - Replace promiseWaitForCondition with TestUtils.waitForCondition r=johannh Reviewers: johannh Reviewed By: johannh Bug #: 1443861 Differential Revision: https://phabricator.services.mozilla.com/D4293 --HG-- extra : source : 8d42de3d92450c461967fe102959dba7b71ff663 extra : histedit_source : fca7fe1b5aaf5bebdd679118df24e8c6929edf27 --- .../test/webrtc/browser_devices_get_user_media_anim.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/base/content/test/webrtc/browser_devices_get_user_media_anim.js b/browser/base/content/test/webrtc/browser_devices_get_user_media_anim.js index b72fc3a15d26..38c3bfa2303a 100644 --- a/browser/base/content/test/webrtc/browser_devices_get_user_media_anim.js +++ b/browser/base/content/test/webrtc/browser_devices_get_user_media_anim.js @@ -58,8 +58,8 @@ var gTests = [ await closeStream(); // TODO(Bug 1304997): Fix the race in closeStream() and remove this - // promiseWaitForCondition(). - await promiseWaitForCondition(() => !tab.getAttribute("sharing")); + // TestUtils.waitForCondition(). + await TestUtils.waitForCondition(() => !tab.getAttribute("sharing")); is(tab.getAttribute("sharing"), "", "the tab no longer has the 'sharing' attribute after closing the stream"); }