use existing named constants b=890528 a=webaudio
authorKarl Tomlinson <karlt+@karlt.net>
Mon, 02 Sep 2013 16:53:15 +1200
changeset 153938 aeac941ac51768a4a0a790d7319108cfc9bc457c
parent 153937 3483bf5de40533dfbb299886dafba0ea4864a6c3
child 153939 0177db952fd3d74453eb92e31a2cef94432c462a
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswebaudio
bugs890528
milestone25.0a2
use existing named constants b=890528 a=webaudio
content/media/webaudio/test/test_delayNodeAtMax.html
--- a/content/media/webaudio/test/test_delayNodeAtMax.html
+++ b/content/media/webaudio/test/test_delayNodeAtMax.html
@@ -18,33 +18,33 @@ function applySignal(buffer, offset) {
   for (var i = 0; i < signalLength; ++i) {
     buffer.getChannelData(0)[offset + i] = Math.cos(Math.PI * i / signalLength);
   }
 }
 
 var gTest = {
   numberOfChannels: 1,
   createGraph: function(context) {
-    var buffer = context.createBuffer(1, 2048, context.sampleRate);
+    var buffer = context.createBuffer(1, signalLength, context.sampleRate);
     applySignal(buffer, 0);
 
     var source = context.createBufferSource();
     source.buffer = buffer;
 
     const delayTime = delayLength / context.sampleRate;
     var delay = context.createDelay(delayTime);
     delay.delayTime.value = delayTime;
 
     source.connect(delay);
 
     source.start(0);
     return delay;
   },
   createExpectedBuffers: function(context) {
-    var expectedBuffer = context.createBuffer(1, 4096, context.sampleRate);
+    var expectedBuffer = context.createBuffer(1, outputLength, context.sampleRate);
     applySignal(expectedBuffer, delayLength);
     return expectedBuffer;
   },
 };
 
 runTest();
 
 </script>