content/media/test/crashtests/offline-buffer-source-ended-1.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 <!DOCTYPE html>
     2 <html class="reftest-wait">
     3 <script>
     4 // Currently this test fails unless an extra block is processed after the
     5 // BufferSource finishes. 12033 ≡ 1 (mod 128), but the test should pass even
     6 // when only 12001 samples are processed.
     7 var context = new window.OfflineAudioContext(1, 12033, 12000);
     9 var source = context.createBufferSource();
    10 source.buffer = context.createBuffer(1, 12000, context.sampleRate);
    11 source.onended = function(e) {
    12   document.documentElement.removeAttribute("class");
    13 }
    14 source.connect(context.destination);
    15 source.start(0);
    17 context.startRendering();
    18 </script>

mercurial