b=966322 work around bug 916387 DONTBUILD
authorKarl Tomlinson <karlt+@karlt.net>
Thu, 20 Feb 2014 14:58:09 +1300
changeset 169987 36335b77688ed8517f88196bbf8d49f72f4fae5f
parent 169986 392946fdbf684f7f7568587f5da79d5ede0575a6
child 169988 abfaf0ccae19a0702be8a8d3427cb15cee5f4add
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
bugs966322, 916387
milestone30.0a1
b=966322 work around bug 916387 DONTBUILD
content/media/webaudio/test/test_oscillatorNodeStart.html
--- a/content/media/webaudio/test/test_oscillatorNodeStart.html
+++ b/content/media/webaudio/test/test_oscillatorNodeStart.html
@@ -12,45 +12,29 @@
 SimpleTest.waitForExplicitFinish();
 addLoadEvent(function() {
 
   var context = new AudioContext();
   var osc = context.createOscillator();
   var sp = context.createScriptProcessor();
 
   osc.connect(sp);
+  // Work around bug 916387.
+  sp.connect(context.destination);
 
   sp.onaudioprocess = function (e) {
     var input = e.inputBuffer.getChannelData(0);
     var isSilent = true;
     for (var i = 0; i < input.length; i++) {
       if (input[i] != 0.0) {
         isSilent = false;
       }
     }
     sp.onaudioprocess = null;
-    dump("audioprocess received\n");
     ok(isSilent, "OscillatorNode should be silent before calling start.");
     SimpleTest.finish();
   }
-
-  // Debug Logging for bug 966322
-
-  var bs = context.createBufferSource();
-  bs.buffer = context.createBuffer(1, 1, context.sampleRate);
-  bs.start();
-  bs.onended = function() {
-    dump("Graph started running\n");
-  }
-
-  var bs = context.createBufferSource();
-  bs.buffer = context.createBuffer(1, 1, context.sampleRate);
-  bs.start(sp.bufferSize / context.sampleRate);
-  bs.onended = function() {
-    dump("Graph ran for long enough to finish first ScriptProcessorBlock\n");
-  }
-
 });
 
 </script>
 </pre>
 </body>
 </html>