content/media/webaudio/test/test_convolverNode.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4   <title>Test the ConvolverNode interface</title>
     5   <script type="text/javascript" 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">
    13 SimpleTest.waitForExplicitFinish();
    14 addLoadEvent(function() {
    15   var context = new AudioContext();
    16   var conv = context.createConvolver();
    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");
    22   is(conv.buffer, null, "Default buffer value");
    23   conv.buffer = context.createBuffer(2, 1024, 22050);
    24   is(conv.normalize, true, "Default normalize value");
    26   SimpleTest.finish();
    27 });
    29 </script>
    30 </pre>
    31 </body>
    32 </html>

mercurial