content/media/webaudio/test/test_bug866737.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>
     3 <head>
     4   <title>Test for bug 866737</title>
     5   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     6   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     7 </head>
     8 <body>
     9 <pre id="test">
    10 <script class="testbody" type="text/javascript">
    12 var context = new AudioContext();
    14 (function() {
    15   var d = context.createDelay();
    16   var panner = context.createPanner();
    17   d.connect(panner);
    18   var gain = context.createGain();
    19   panner.connect(gain);
    20   gain.connect(context.destination);
    21   gain.disconnect(0);
    22 })();
    24 SpecialPowers.forceGC();
    25 SpecialPowers.forceCC();
    27 var gain = context.createGain();
    28 gain.connect(context.destination);
    29 gain.disconnect(0);
    31 ok(true, "No crashes should happen!");
    33 </script>
    34 </pre>
    35 </body>
    36 </html>

mercurial