mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1019572 - Manually stop the media stream in test_permission_gum_remember.html. r=baku.
This commit is contained in:
parent
931c562386
commit
cadc31120f
@ -52,8 +52,9 @@ function testGranted() {
|
||||
if (steps.length > 0) {
|
||||
let requestedType = steps.shift();
|
||||
info('getUserMedia for ' + JSON.stringify(requestedType));
|
||||
navigator.mozGetUserMedia(requestedType, function success() {
|
||||
navigator.mozGetUserMedia(requestedType, function success(stream) {
|
||||
ok(true, 'expected gUM success');
|
||||
stream.stop();
|
||||
nextStep();
|
||||
}, function failure(err) {
|
||||
ok(false, 'unexpected gUM fail: ' + err);
|
||||
@ -79,8 +80,9 @@ function testDenied() {
|
||||
if (steps.length > 0) {
|
||||
let requestedType = steps.shift();
|
||||
info('getUserMedia for ' + JSON.stringify(requestedType));
|
||||
navigator.mozGetUserMedia(requestedType, function success() {
|
||||
navigator.mozGetUserMedia(requestedType, function success(stream) {
|
||||
ok(false, 'unexpected gUM success');
|
||||
stream.stop();
|
||||
nextStep();
|
||||
}, function failure(err) {
|
||||
ok(true, 'expected gUM fail: ' + err);
|
||||
@ -104,8 +106,9 @@ function testPartialDeniedAudio() {
|
||||
info('getUserMedia for video and audio');
|
||||
function nextStep() {
|
||||
navigator.mozGetUserMedia({video: {facingMode: 'environment', required: ['facingMode']},
|
||||
audio: true}, function success() {
|
||||
audio: true}, function success(stream) {
|
||||
ok(false, 'unexpected gUM success');
|
||||
stream.stop();
|
||||
resolve();
|
||||
}, function failure(err) {
|
||||
ok(true, 'expected gUM fail: ' + err);
|
||||
@ -126,8 +129,9 @@ function testPartialDeniedVideo() {
|
||||
info('getUserMedia for video and audio');
|
||||
function nextStep() {
|
||||
navigator.mozGetUserMedia({video: {facingMode: 'environment', required: ['facingMode']},
|
||||
audio: true}, function success() {
|
||||
audio: true}, function success(stream) {
|
||||
ok(false, 'unexpected gUM success');
|
||||
stream.stop();
|
||||
resolve();
|
||||
}, function failure(err) {
|
||||
ok(true, 'expected gUM fail: ' + err);
|
||||
|
Loading…
Reference in New Issue
Block a user