Bug 1031137 - Make content/media/test/crashtests/1028458.html pass if audio input hardware is unavailable. r=jesup

This commit is contained in:
Paul Adenot 2014-07-08 16:36:48 +02:00
parent 091d058801
commit 1e76371a8d

View File

@ -14,7 +14,9 @@ navigator.mozGetUserMedia({audio: true}, function(stream) {
testAudio.mozSrcObject = stream; testAudio.mozSrcObject = stream;
testAudio.play(); testAudio.play();
}, function(err) { }, function(err) {
console.log(err); // Don't go orange if we can't get an audio input stream,
// as this is not what we are trying to test and can happen on Windows.
document.querySelector("html").className = "";
}); });
</script> </script>