OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <script src="../resources/js-test.js"></script> | 5 <script src="../resources/js-test.js"></script> |
| 6 <script src="resources/compatibility.js"></script> |
6 <script src="resources/audio-testing.js"></script> | 7 <script src="resources/audio-testing.js"></script> |
7 </head> | 8 </head> |
8 | 9 |
9 <body> | 10 <body> |
10 | 11 |
11 <div id="description"></div> | 12 <div id="description"></div> |
12 <div id="console"></div> | 13 <div id="console"></div> |
13 | 14 |
14 <script> | 15 <script> |
15 description("Basic tests for AudioChannelMerger."); | 16 description("Basic tests for AudioChannelMerger."); |
16 | 17 |
17 function runTest() { | 18 function runTest() { |
18 if (window.testRunner) { | 19 if (window.testRunner) { |
19 testRunner.dumpAsText(); | 20 testRunner.dumpAsText(); |
20 testRunner.waitUntilDone(); | 21 testRunner.waitUntilDone(); |
21 } | 22 } |
22 | 23 |
23 window.jsTestIsAsync = true; | 24 window.jsTestIsAsync = true; |
24 | 25 |
25 var context = new webkitAudioContext(); | 26 var context = new AudioContext(); |
26 | 27 |
27 try { | 28 try { |
28 var mergernode = context.createChannelMerger(0); | 29 var mergernode = context.createChannelMerger(0); |
29 testFailed("Exception should be thrown for numberOfInputs <= 0."); | 30 testFailed("Exception should be thrown for numberOfInputs <= 0."); |
30 } catch(e) { | 31 } catch(e) { |
31 testPassed("Exception was thrown for numberOfInputs <= 0."); | 32 testPassed("Exception was thrown for numberOfInputs <= 0."); |
32 } | 33 } |
33 | 34 |
34 try { | 35 try { |
35 var mergernode = context.createChannelMerger(33); | 36 var mergernode = context.createChannelMerger(33); |
(...skipping 22 matching lines...) Expand all Loading... |
58 | 59 |
59 finishJSTest(); | 60 finishJSTest(); |
60 } | 61 } |
61 | 62 |
62 runTest(); | 63 runTest(); |
63 | 64 |
64 </script> | 65 </script> |
65 | 66 |
66 </body> | 67 </body> |
67 </html> | 68 </html> |
OLD | NEW |