Bug 1380346 - Apply applyConstraints() properly. r=jib

MozReview-Commit-ID: EOuHS9nYT8S

--HG--
extra : rebase_source : 5d162b361ecfa6611317805a305a6ffcd33e16a2
This commit is contained in:
Andreas Pehrson 2017-09-14 19:20:26 +02:00
Родитель c855ea91ce
Коммит 94fb70a59f
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -154,7 +154,7 @@
info("Testing modifying screenshare with applyConstraints");
await Promise.all([
() => testVideo.srcObject.getVideoTracks()[0].applyConstraints({
testVideo.srcObject.getVideoTracks()[0].applyConstraints({
mediaSource: 'screen',
width: 200,
height: 200,
@ -163,7 +163,7 @@
max: '10'
}
}),
() => listenUntil(testVideo, "resize", () => true),
haveEvent(testVideo, "resize", wait(5000, new Error("Timeout"))),
]);
draw(helper.grey, helper.green,
helper.blue, helper.red);