Bug 1618225 - Updated mochitest for loop with duration r=padenot
authorCorentin Arnould <koalab1999@gmail.com>
Wed, 24 Jun 2020 12:00:11 +0000
changeset 537107 99ac03bfe9ce6e913ae3fa55fb8ce54ef98fbc15
parent 537106 f74c10d883047b1fe6d072d1cd93bc464beb98e4
child 537108 feff7b5ed5b18b761f9e01e12a886d4c6a45c8a4
push id119816
push userpadenot@mozilla.com
push dateWed, 24 Jun 2020 12:05:27 +0000
treeherderautoland@feff7b5ed5b1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot
bugs1618225
milestone79.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
Bug 1618225 - Updated mochitest for loop with duration r=padenot Differential Revision: https://phabricator.services.mozilla.com/D79874
dom/media/webaudio/test/test_audioBufferSourceNodeLazyLoopParam.html
--- a/dom/media/webaudio/test/test_audioBufferSourceNodeLazyLoopParam.html
+++ b/dom/media/webaudio/test/test_audioBufferSourceNodeLazyLoopParam.html
@@ -22,22 +22,22 @@ var gTest = {
 
     var source = context.createBufferSource();
 
     // we start at the 1024 frames, we should only have ones.
     source.loop = true;
     source.loopStart = 1024 / context.sampleRate;
     source.loopEnd = 2048 / context.sampleRate;
     source.buffer = buffer;
-    source.start(0, 1024 / context.sampleRate, 1024 / context.sampleRate);
+    source.start(0, 1024 / context.sampleRate, 2048 / context.sampleRate);
     return source;
   },
   createExpectedBuffers(context) {
     var expectedBuffer = context.createBuffer(1, 4096, context.sampleRate);
-    for (var i = 0; i < 4096; i++) {
+    for (var i = 0; i < 2048; i++) {
       expectedBuffer.getChannelData(0)[i] = 1;
     }
     return expectedBuffer;
   },
 };
 
 runTest();