content/media/test/crashtests/925619-2.html

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     1 <!DOCTYPE html>
     2 <html class="reftest-wait">
     3 <script>
     4 var context = new window.OfflineAudioContext(1, 2048, 48000);
     5 // 1024 > 89478.5 * 48000 - (1 << 32)
     6 var buffer = context.createBuffer(1, 1024, context.sampleRate);
     7 var source = context.createBufferSource();
     8 source.buffer = buffer;
     9 source.onended = function(e) {
    10   document.documentElement.removeAttribute("class");
    11 };
    12 source.start(0);
    13 source.stop(89478.5); // 89478.5 is a little greater than 2^32 / 48000.
    14 context.startRendering();
    15 </script>

mercurial