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:
Tooru Fujisawa 2018-04-09 10:58:01 +09:00
Родитель a90ccf8ea5
Коммит 9a22c79e38
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -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();