зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
76395d15fe
Коммит
49f7e9bdc2
|
@ -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) + ")";
|
||||
|
|
Загрузка…
Ссылка в новой задаче