Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 | 3 |
| 4 <head> | 4 <head> |
| 5 <script src="../../resources/js-test.js"></script> | 5 <script src="../../resources/testharness.js"></script> |
| 6 <script src="../../resources/testharnessreport.js"></script> | |
| 6 <script src="../resources/audit-util.js"></script> | 7 <script src="../resources/audit-util.js"></script> |
| 7 <script src="../resources/audio-testing.js"></script> | 8 <script src="../resources/audio-testing.js"></script> |
| 8 <script src="../resources/late-start-testing.js"></script> | 9 <script src="../resources/late-start-testing.js"></script> |
| 9 </head> | 10 </head> |
| 10 | 11 |
| 11 <body> | 12 <body> |
| 12 <script> | 13 <script> |
| 13 description('Test the late call of start(0) of Oscillator.'); | |
| 14 window.jsTestIsAsync = true; | |
| 15 | |
| 16 var audit = Audit.createTaskRunner(); | 14 var audit = Audit.createTaskRunner(); |
| 17 | 15 |
| 18 var sampleRate = 44100; | 16 var sampleRate = 44100; |
| 19 | 17 |
| 20 var renderLength = 1; | 18 var renderLength = 1; |
| 21 | 19 |
| 22 var context = new OfflineAudioContext(1, sampleRate * renderLength, sampleRa te); | 20 var context = new OfflineAudioContext(1, sampleRate * renderLength, sampleRa te); |
| 23 var osc = context.createOscillator(); | 21 var osc = context.createOscillator(); |
| 24 | 22 |
| 25 // 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() |
| 26 // call is in the past in terms of the context time. | 24 // call is in the past in terms of the context time. |
| 27 runLateStartTest(audit, context, osc); | 25 runLateStartTest(audit, context, osc); |
| 28 | 26 |
| 29 successfullyParsed = true; | 27 successfullyParsed = true; |
|
hongchan
2017/02/17 18:23:16
This needs to be removed.
Raymond Toy
2017/02/17 18:55:06
Done.
| |
| 30 </script> | 28 </script> |
| 31 </body> | 29 </body> |
| 32 | 30 |
| 33 </html> | 31 </html> |
| OLD | NEW |