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 ScriptProcessorNode accepts 0 input channels."); | 14 description("Tests that ScriptProcessorNode accepts 0 input channels."); |
(...skipping 11 matching lines...) Expand all Loading... |
25 | 26 |
26 function runTest() | 27 function runTest() |
27 { | 28 { |
28 if (window.testRunner) { | 29 if (window.testRunner) { |
29 testRunner.dumpAsText(); | 30 testRunner.dumpAsText(); |
30 testRunner.waitUntilDone(); | 31 testRunner.waitUntilDone(); |
31 } | 32 } |
32 | 33 |
33 window.jsTestIsAsync = true; | 34 window.jsTestIsAsync = true; |
34 | 35 |
35 var context = new webkitOfflineAudioContext(1, renderLengthInFrames, sampleR
ate); | 36 var context = new OfflineAudioContext(1, renderLengthInFrames, sampleRate); |
36 | 37 |
37 var node; | 38 var node; |
38 | 39 |
39 try { | 40 try { |
40 node = context.createScriptProcessor(bufferSize, 0, 1); | 41 node = context.createScriptProcessor(bufferSize, 0, 1); |
41 testPassed("Successfully created ScriptProcessorNode."); | 42 testPassed("Successfully created ScriptProcessorNode."); |
42 } catch (e) { | 43 } catch (e) { |
43 testFailed("Failed to create ScriptProcessorNode."); | 44 testFailed("Failed to create ScriptProcessorNode."); |
44 } | 45 } |
45 | 46 |
(...skipping 12 matching lines...) Expand all Loading... |
58 context.oncomplete = checkResult; | 59 context.oncomplete = checkResult; |
59 context.startRendering(); | 60 context.startRendering(); |
60 } | 61 } |
61 | 62 |
62 runTest(); | 63 runTest(); |
63 successfullyParsed = true; | 64 successfullyParsed = true; |
64 </script> | 65 </script> |
65 | 66 |
66 </body> | 67 </body> |
67 </html> | 68 </html> |
OLD | NEW |