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
This commit is contained in:
Arshad Kazmi 2018-08-26 21:04:27 +03:00
Родитель bf660f16a4
Коммит 3976d04ec7
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");
}