content/media/webaudio/test/test_convolverNode.html

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:8c1ae33989d4
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">
12
13 SimpleTest.waitForExplicitFinish();
14 addLoadEvent(function() {
15 var context = new AudioContext();
16 var conv = context.createConvolver();
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 conv.buffer = context.createBuffer(2, 1024, 22050);
24 is(conv.normalize, true, "Default normalize value");
25
26 SimpleTest.finish();
27 });
28
29 </script>
30 </pre>
31 </body>
32 </html>

mercurial