зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1447180 - Wait for the end of the second tab streams before continuing test for first tab in browser/base/content/test/webrtc/browser_devices_get_user_media_multi_process.js. r=dao
This commit is contained in:
Родитель
a90ccf8ea5
Коммит
9a22c79e38
|
@ -306,7 +306,10 @@ var gTests = [
|
|||
// first tab receives observer notifications for things happening in the
|
||||
// second tab, so let's clear the observer call counts before we cleanup
|
||||
// in the first tab.
|
||||
await ignoreObserversCalled();
|
||||
await Promise.all([
|
||||
TestUtils.waitForCondition(() => webrtcUI.getActiveStreams(true, true, true).length == 1),
|
||||
ignoreObserversCalled(),
|
||||
]);
|
||||
|
||||
// Close the first tab's stream and verify that all indicators are removed.
|
||||
await closeStream();
|
||||
|
|
Загрузка…
Ссылка в новой задаче