OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 | 3 |
4 <head> | 4 <head> |
5 <script src="../../resources/testharness.js"></script> | 5 <script src="../../resources/testharness.js"></script> |
6 <script src="../../resources/testharnessreport.js"></script> | 6 <script src="../../resources/testharnessreport.js"></script> |
7 <script src="../resources/audit-util.js"></script> | 7 <script src="../resources/audit-util.js"></script> |
8 <script src="../resources/audio-testing.js"></script> | 8 <script src="../resources/audit.js"></script> |
9 <script src="../resources/late-start-testing.js"></script> | 9 <script src="../resources/late-start-testing.js"></script> |
10 </head> | 10 </head> |
11 | 11 |
12 <body> | 12 <body> |
13 <script> | 13 <script> |
14 var audit = Audit.createTaskRunner(); | 14 var audit = Audit.createTaskRunner(); |
15 | 15 |
16 var sampleRate = 44100; | 16 var sampleRate = 44100; |
17 | 17 |
18 var renderLength = 1; | 18 var renderLength = 1; |
19 | 19 |
20 var context = new OfflineAudioContext(1, sampleRate * renderLength, sampleRa
te); | 20 var context = new OfflineAudioContext(1, sampleRate * renderLength, sampleRa
te); |
21 var osc = context.createOscillator(); | 21 var osc = context.createOscillator(); |
22 | 22 |
23 // Test the oscillator node is rendered correctly when the start time of sta
rt() | 23 // Test the oscillator node is rendered correctly when the start time of sta
rt() |
24 // call is in the past in terms of the context time. | 24 // call is in the past in terms of the context time. |
25 runLateStartTest(audit, context, osc); | 25 runLateStartTest(audit, context, osc); |
26 </script> | 26 </script> |
27 </body> | 27 </body> |
28 | 28 |
29 </html> | 29 </html> |
OLD | NEW |