Bug 1406350 - part3: Use fake constraints to avoid enumeration error in one mochitest. r=pehrsons

MozReview-Commit-ID: 4nqamvBsNbo

--HG--
extra : rebase_source : b25d9208c4b094e3929f4201e9f23dd955f47569
This commit is contained in:
Alex Chronopoulos 2018-01-17 17:01:53 +02:00
Родитель 54498ae40b
Коммит 0f7663d5ba
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -39,7 +39,8 @@
var newTrack;
var audiotrack;
return getUserMedia({video:true, audio:true})
// Remove fake constraints with Bug 1431056
return getUserMedia({fake:true, video:true, audio:true})
.then(newStream => {
window.grip = newStream;
newTrack = newStream.getVideoTracks()[0];
@ -69,7 +70,8 @@
runNetworkTest(function () {
test = new PeerConnectionTest();
test.audioCtx = new AudioContext();
test.setMediaConstraints([{video: true, audio: true}], [{video: true}]);
// Remove fake constraints with Bug 1431056
test.setMediaConstraints([{fake: true, video: true, audio: true}], [{fake: true, video: true}]);
test.chain.removeAfter("PC_REMOTE_WAIT_FOR_MEDIA_FLOW");
// Test replaceTrack on pcRemote separately since it's video only.