Bug 1443861 - Replace promiseWaitForCondition with TestUtils.waitForCondition

Reviewers: johannh

Reviewed By: johannh

Bug #: 1443861

Differential Revision: https://phabricator.services.mozilla.com/D4293

--HG--
extra : rebase_source : 07711a0f00e4f1c7f3201db250f7c1f455b83e6b
This commit is contained in:
Arshad Kazmi 2018-08-26 21:04:27 +03:00
Родитель e864b4f797
Коммит ef81bb217e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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");
}