use existing named constants b=890528
authorKarl Tomlinson <karlt+@karlt.net>
Mon, 02 Sep 2013 16:53:15 +1200
changeset 145217 007e590f7e96326216bff1cab67b667d88528758
parent 145216 64df96108142f0c41bf88ee87726f5400f15b996
child 145218 66991961691dc2d954f817b809b451283991a6ef
push id33197
push userktomlinson@mozilla.com
push dateMon, 02 Sep 2013 06:36:14 +0000
treeherdermozilla-inbound@007e590f7e96 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs890528
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
use existing named constants b=890528
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>