Bug 1565374 - Improve test. r=jib

Differential Revision: https://phabricator.services.mozilla.com/D37783

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andreas Pehrson 2019-07-17 19:57:30 +00:00
Родитель 76395d15fe
Коммит 49f7e9bdc2
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -22,7 +22,11 @@ async function testEnumerateDevices(expectDevices) {
async function testGetUserMedia(expectDevices) {
const constraints = [
{audio: true}, {video: true}, {audio: true, video: true}
{audio: true},
{video: true},
{audio: true, video: true},
{video: {width: {min: 1e9}}}, // impossible
{audio: {channelCount: {exact: 1e3}}}, // impossible
];
for (let constraint of constraints) {
let message = "getUserMedia(" + JSON.stringify(constraint) + ")";