зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1443585 - Remove fake:true from test_pc_trackDisabling_clones.html. r=jib
MozReview-Commit-ID: A0sI1HvEzpf --HG-- extra : rebase_source : c7d351685fbd5283965319f47f7746c9d5df2bd4
This commit is contained in:
Родитель
8de88149cc
Коммит
86d6c7f730
|
@ -24,9 +24,7 @@ runNetworkTest(async () => {
|
|||
var originalStream;
|
||||
var localVideoOriginal;
|
||||
|
||||
// Always use fake tracks since we depend on audio to have a large 1000Hz
|
||||
// component.
|
||||
test.setMediaConstraints([{audio: true, video: true, fake: true}], []);
|
||||
test.setMediaConstraints([{audio: true, video: true}], []);
|
||||
test.chain.replace("PC_LOCAL_GUM", [
|
||||
function PC_LOCAL_GUM_CLONE() {
|
||||
return getUserMedia(test.pcLocal.constraints[0]).then(stream => {
|
||||
|
@ -112,11 +110,11 @@ runNetworkTest(async () => {
|
|||
var remoteAnalyserClone =
|
||||
new AudioStreamAnalyser(ac, test.pcRemote._pc.getRemoteStreams()[0]);
|
||||
|
||||
var freq1k = localAnalyserOriginal.binIndexForFrequency(1000);
|
||||
var freq = localAnalyserOriginal.binIndexForFrequency(TEST_AUDIO_FREQ);
|
||||
var checkAudioEnabled = analyser =>
|
||||
analyser.waitForAnalysisSuccess(array => array[freq1k] > 200);
|
||||
analyser.waitForAnalysisSuccess(array => array[freq] > 200);
|
||||
var checkAudioDisabled = analyser =>
|
||||
analyser.waitForAnalysisSuccess(array => array[freq1k] < 50);
|
||||
analyser.waitForAnalysisSuccess(array => array[freq] < 50);
|
||||
|
||||
info("Checking local original enabled");
|
||||
await checkAudioEnabled(localAnalyserOriginal);
|
||||
|
|
Загрузка…
Ссылка в новой задаче