зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1332516 - Fix Intermittent browser_devices_get_user_media_unprompted_access_tear_off_tab.js; r=florian
MozReview-Commit-ID: LRVpMwGl6Ev --HG-- extra : rebase_source : 635148900f05d0cb782fd2366776a3fb1b6286ff
This commit is contained in:
Родитель
9304b6483c
Коммит
0f5f625a1a
|
@ -39,13 +39,14 @@ var gTests = [
|
|||
info("request audio+video and check if there is no prompt");
|
||||
yield promiseRequestDevice(true, true, null, null, win.gBrowser.selectedBrowser);
|
||||
yield promiseObserverCalled("getUserMedia:request");
|
||||
yield promiseNoPopupNotification("webRTC-shareDevices");
|
||||
yield expectObserverCalled("getUserMedia:response:allow");
|
||||
yield expectObserverCalled("recording-device-events");
|
||||
let promises = [promiseNoPopupNotification("webRTC-shareDevices"),
|
||||
promiseObserverCalled("getUserMedia:response:allow"),
|
||||
promiseObserverCalled("recording-device-events")];
|
||||
yield Promise.all(promises);
|
||||
|
||||
let promises = [promiseObserverCalled("recording-device-events"),
|
||||
promiseObserverCalled("recording-device-events"),
|
||||
promiseObserverCalled("recording-window-ended")];
|
||||
promises = [promiseObserverCalled("recording-device-events"),
|
||||
promiseObserverCalled("recording-device-events"),
|
||||
promiseObserverCalled("recording-window-ended")];
|
||||
yield BrowserTestUtils.closeWindow(win);
|
||||
yield Promise.all(promises);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче