OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
| 4 <script src="resources/compatibility.js"></script> |
4 <script src="resources/audio-testing.js"></script> | 5 <script src="resources/audio-testing.js"></script> |
5 <script src="../resources/js-test.js"></script> | 6 <script src="../resources/js-test.js"></script> |
6 </head> | 7 </head> |
7 | 8 |
8 <body> | 9 <body> |
9 <div id="description"></div> | 10 <div id="description"></div> |
10 <div id="console"></div> | 11 <div id="console"></div> |
11 | 12 |
12 <script> | 13 <script> |
13 description("Tests that ConvolverNode impulse response buffer can be set to 0.")
; | 14 description("Tests that ConvolverNode impulse response buffer can be set to 0.")
; |
14 | 15 |
15 function runTest() | 16 function runTest() |
16 { | 17 { |
17 if (window.testRunner) { | 18 if (window.testRunner) { |
18 testRunner.dumpAsText(); | 19 testRunner.dumpAsText(); |
19 testRunner.waitUntilDone(); | 20 testRunner.waitUntilDone(); |
20 } | 21 } |
21 | 22 |
22 window.jsTestIsAsync = true; | 23 window.jsTestIsAsync = true; |
23 | 24 |
24 var context = new webkitAudioContext(); | 25 var context = new AudioContext(); |
25 var conv = context.createConvolver(); | 26 var conv = context.createConvolver(); |
26 | 27 |
27 conv.buffer = 0; | 28 conv.buffer = 0; |
28 testPassed("ConvolverNode impulse response buffer was set to 0."); | 29 testPassed("ConvolverNode impulse response buffer was set to 0."); |
29 | 30 |
30 finishJSTest(); | 31 finishJSTest(); |
31 } | 32 } |
32 | 33 |
33 runTest(); | 34 runTest(); |
34 successfullyParsed = true; | 35 successfullyParsed = true; |
35 </script> | 36 </script> |
36 | 37 |
37 </body> | 38 </body> |
38 </html> | 39 </html> |
OLD | NEW |