зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1443866 - Use TestUtils.waitForCondition in browser_devices_get_user_media_multi_process.js. r=johannh
This commit is contained in:
Родитель
a25cefc942
Коммит
50244b7020
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче