зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
e864b4f797
Коммит
ef81bb217e
|
@ -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");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче