Bug 990841 - Work around bug 916387. a=test-only
authorKarl Tomlinson <karlt+@karlt.net>
Mon, 05 May 2014 13:24:51 +1200
changeset 199076 825e97d8cde9f92daafc754c3a3391e8c114d893
parent 199075 2bd1995be292c4bf525c9a94f7dca6f10db51c43
child 199077 aff9fd4e047374f68ea6f31a7d5d59af37aeac2b
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs990841, 916387
milestone31.0a2
Bug 990841 - Work around bug 916387. a=test-only
content/media/webaudio/test/test_mediaStreamAudioSourceNodeResampling.html
--- a/content/media/webaudio/test/test_mediaStreamAudioSourceNodeResampling.html
+++ b/content/media/webaudio/test/test_mediaStreamAudioSourceNodeResampling.html
@@ -12,16 +12,17 @@
 SimpleTest.waitForExplicitFinish();
 
 function test() {
   var audio = new Audio("small-shot.ogg");
   var context = new AudioContext();
   var node = context.createMediaStreamSource(audio.mozCaptureStreamUntilEnded());
   var sp = context.createScriptProcessor(2048, 1);
   node.connect(sp);
+  sp.connect(context.destination); // work around bug 916387
   var expectedMinNonzeroSampleCount;
   var expectedMaxNonzeroSampleCount;
   var nonzeroSampleCount = 0;
   var complete = false;
   var iterationCount = 0;
 
   // This test ensures we receive at least expectedSampleCount nonzero samples
   function processSamples(e) {