Index: content/test/data/media/peerconnection-call.html |
diff --git a/content/test/data/media/peerconnection-call.html b/content/test/data/media/peerconnection-call.html |
index 2327647f0225373f6d94f9279de2ce31403c1f28..57658fa6b603b7ce796f1cfacbd50004415f6e05 100644 |
--- a/content/test/data/media/peerconnection-call.html |
+++ b/content/test/data/media/peerconnection-call.html |
@@ -63,7 +63,7 @@ |
waitForVideo('remote-view-2'); |
} |
- // Test that we can setup call with an audio and video track and check that |
+ // Test that we can setup call with an audio and video track and check that |
// the video resolution is as expected. |
function callAndExpectResolution(constraints, |
expected_width, |
@@ -308,8 +308,8 @@ |
// Wait until we have gathered samples and can conclude if audio is playing. |
addExpectedEvent(); |
var onCallEstablished = function() { |
- gatherAudioLevelSamples(gSecondConnection, 300, 100, |
- function(samples) { |
+ // Gather 50 samples per second for 2 seconds. |
+ gatherAudioLevelSamples(gSecondConnection, 100, 50, function(samples) { |
verifyAudioIsPlaying(samples); |
eventOccured(); |
}); |
@@ -329,7 +329,7 @@ |
enableRemoteAudio(gSecondConnection, false); |
setTimeout(function() { |
- gatherAudioLevelSamples(gSecondConnection, 200, 100, function(samples) { |
+ gatherAudioLevelSamples(gSecondConnection, 100, 50, function(samples) { |
verifyIsSilent(samples); |
reportTestSuccess(); |
}); |
@@ -348,11 +348,11 @@ |
}, 500); |
setTimeout(function() { |
- gatherAudioLevelSamples(gSecondConnection, 200, 100, function(samples) { |
+ gatherAudioLevelSamples(gSecondConnection, 100, 50, function(samples) { |
verifyAudioIsPlaying(samples); |
reportTestSuccess(); |
}); |
- }, 1000); |
+ }, 1500); |
}); |
} |