more debug logging for bug 966322 DONTBUILD
authorKarl Tomlinson <karlt+@karlt.net>
Thu, 20 Feb 2014 13:15:58 +1300
changeset 169977 345d62fa28b0ddcc1b8c6872808d5ab6d1369d0d
parent 169976 9abc3581f256815815ea7841a5312986afdca1d2
child 169978 52f682933ea96ae50f4fdfa2a101526fbe78f9c4
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
bugs966322
milestone30.0a1
more debug logging for bug 966322 DONTBUILD
content/media/webaudio/test/test_oscillatorNodeStart.html
--- a/content/media/webaudio/test/test_oscillatorNodeStart.html
+++ b/content/media/webaudio/test/test_oscillatorNodeStart.html
@@ -29,26 +29,28 @@ addLoadEvent(function() {
     sp.onaudioprocess = null;
     dump("audioprocess received\n");
     ok(isSilent, "OscillatorNode should be silent before calling start.");
     SimpleTest.finish();
   }
 
   // Debug Logging for bug 966322
 
-  dump("Load event ran\n");
-
   var bs = context.createBufferSource();
   bs.buffer = context.createBuffer(1, 1, context.sampleRate);
   bs.start();
   bs.onended = function() {
-    dump("Graph is running\n");
+    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");
   }
 
 });
 
-// Debug Logging for bug 966322
-dump("script ran\n");
-
 </script>
 </pre>
 </body>
 </html>