зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
54498ae40b
Коммит
0f7663d5ba
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче