audiopannernode-basic.html should cover default value of attribute.
[WebKit-https.git] / LayoutTests / webaudio / convolver-setBuffer-null.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css"/>
5 <script src="resources/audio-testing.js"></script>
6 <script src="../fast/js/resources/js-test-pre.js"></script>
7 </head>
8
9 <body>
10 <div id="description"></div>
11 <div id="console"></div>
12
13 <script>
14 description("Tests that ConvolverNode impulse response buffer can be set to 0.");
15
16 function runTest()
17 {
18     if (window.testRunner) {
19         testRunner.dumpAsText();
20         testRunner.waitUntilDone();
21     }
22
23     window.jsTestIsAsync = true;
24
25     var context = new webkitAudioContext();
26     var conv = context.createConvolver();
27
28     conv.buffer = 0;
29     testPassed("ConvolverNode impulse response buffer was set to 0.");
30
31     finishJSTest();
32 }
33
34 runTest();
35 successfullyParsed = true;
36 </script>
37
38 <script src="../fast/js/resources/js-test-post.js"></script>
39 </body>
40 </html>