From 49f7e9bdc27babc217db732f42263a08c43da84b Mon Sep 17 00:00:00 2001 From: Andreas Pehrson Date: Wed, 17 Jul 2019 19:57:30 +0000 Subject: [PATCH] Bug 1565374 - Improve test. r=jib Differential Revision: https://phabricator.services.mozilla.com/D37783 --HG-- extra : moz-landing-system : lando --- .../tests/mochitest/test_fingerprinting_resistance.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dom/media/tests/mochitest/test_fingerprinting_resistance.html b/dom/media/tests/mochitest/test_fingerprinting_resistance.html index 2fea2ef842f3..cb7a9e643207 100644 --- a/dom/media/tests/mochitest/test_fingerprinting_resistance.html +++ b/dom/media/tests/mochitest/test_fingerprinting_resistance.html @@ -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) + ")";