content/media/webaudio/test/test_convolverNode.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/media/webaudio/test/test_convolverNode.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<head>
     1.7 +  <title>Test the ConvolverNode interface</title>
     1.8 +  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     1.9 +  <script type="text/javascript" src="webaudio.js"></script>
    1.10 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    1.11 +</head>
    1.12 +<body>
    1.13 +<pre id="test">
    1.14 +<script class="testbody" type="text/javascript">
    1.15 +
    1.16 +SimpleTest.waitForExplicitFinish();
    1.17 +addLoadEvent(function() {
    1.18 +  var context = new AudioContext();
    1.19 +  var conv = context.createConvolver();
    1.20 +
    1.21 +  is(conv.channelCount, 2, "Convolver node has 2 input channels by default");
    1.22 +  is(conv.channelCountMode, "clamped-max", "Correct channelCountMode for the Convolver node");
    1.23 +  is(conv.channelInterpretation, "speakers", "Correct channelCountInterpretation for the Convolver node");
    1.24 +
    1.25 +  is(conv.buffer, null, "Default buffer value");
    1.26 +  conv.buffer = context.createBuffer(2, 1024, 22050);
    1.27 +  is(conv.normalize, true, "Default normalize value");
    1.28 +
    1.29 +  SimpleTest.finish();
    1.30 +});
    1.31 +
    1.32 +</script>
    1.33 +</pre>
    1.34 +</body>
    1.35 +</html>

mercurial