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/note-grain-on-testing.js"></script> | 6 <script src="resources/note-grain-on-testing.js"></script> |
6 <script src="../resources/js-test.js"></script> | 7 <script src="../resources/js-test.js"></script> |
7 </head> | 8 </head> |
8 | 9 |
9 <body> | 10 <body> |
10 <div id="description"></div> | 11 <div id="description"></div> |
11 <div id="console"></div> | 12 <div id="console"></div> |
12 | 13 |
13 <script> | 14 <script> |
(...skipping 23 matching lines...) Expand all Loading... |
37 | 38 |
38 function runTest() { | 39 function runTest() { |
39 if (window.testRunner) { | 40 if (window.testRunner) { |
40 testRunner.dumpAsText(); | 41 testRunner.dumpAsText(); |
41 testRunner.waitUntilDone(); | 42 testRunner.waitUntilDone(); |
42 } | 43 } |
43 | 44 |
44 window.jsTestIsAsync = true; | 45 window.jsTestIsAsync = true; |
45 | 46 |
46 // Create offline audio context. | 47 // Create offline audio context. |
47 context = new webkitOfflineAudioContext(2, sampleRate * renderTime, sa
mpleRate); | 48 context = new OfflineAudioContext(2, sampleRate * renderTime, sampleRa
te); |
48 | 49 |
49 squarePulseBuffer = createSignalBuffer(context, function (k) { return
1 }); | 50 squarePulseBuffer = createSignalBuffer(context, function (k) { return
1 }); |
50 | 51 |
51 playAllGrains(context, squarePulseBuffer, numberOfTests); | 52 playAllGrains(context, squarePulseBuffer, numberOfTests); |
52 | 53 |
53 context.oncomplete = checkResult; | 54 context.oncomplete = checkResult; |
54 context.startRendering(); | 55 context.startRendering(); |
55 } | 56 } |
56 | 57 |
57 runTest(); | 58 runTest(); |
58 successfullyParsed = true; | 59 successfullyParsed = true; |
59 | 60 |
60 </script> | 61 </script> |
61 | 62 |
62 </body> | 63 </body> |
63 </html> | 64 </html> |
OLD | NEW |