tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_convolverNode.html (945B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Test the ConvolverNode interface</title>
      5  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6  <script type="text/javascript" src="webaudio.js"></script>
      7  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
      8 </head>
      9 <body>
     10 <pre id="test">
     11 <script class="testbody" type="text/javascript">
     12 
     13 SimpleTest.waitForExplicitFinish();
     14 addLoadEvent(function() {
     15  var context = new AudioContext();
     16  var conv = new ConvolverNode(context);
     17 
     18  is(conv.channelCount, 2, "Convolver node has 2 input channels by default");
     19  is(conv.channelCountMode, "clamped-max", "Correct channelCountMode for the Convolver node");
     20  is(conv.channelInterpretation, "speakers", "Correct channelCountInterpretation for the Convolver node");
     21 
     22  is(conv.buffer, null, "Default buffer value");
     23  is(conv.normalize, true, "Default normalize value");
     24 
     25  SimpleTest.finish();
     26 });
     27 
     28 </script>
     29 </pre>
     30 </body>
     31 </html>