Fri, 16 Jan 2015 04:50:19 +0100
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>