Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-late-start.html

Issue 2581463002: Refactor WebAudio test directory (Closed)
Patch Set: Use correct path for wav result files Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/js-test.js"></script>
6 <script src="resources/compatibility.js"></script> 6 <script src="../resources/compatibility.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/audio-testing.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 description('Test the late call of start(0) of Oscillator.'); 14 description('Test the late call of start(0) of Oscillator.');
15 window.jsTestIsAsync = true; 15 window.jsTestIsAsync = true;
16 16
17 var audit = Audit.createTaskRunner(); 17 var audit = Audit.createTaskRunner();
18 18
19 var sampleRate = 44100; 19 var sampleRate = 44100;
20 20
21 // The long render length (20 seconds) is to make sure the |onstatechange| 21 // The long render length (20 seconds) is to make sure the |onstatechange|
22 // event gets fired to start the source, which can take quite a bit of time. 22 // event gets fired to start the source, which can take quite a bit of time.
23 var renderLength = 20; 23 var renderLength = 20;
24 24
25 var context = new OfflineAudioContext(1, sampleRate * renderLength, sampleRa te); 25 var context = new OfflineAudioContext(1, sampleRate * renderLength, sampleRa te);
26 var osc = context.createOscillator(); 26 var osc = context.createOscillator();
27 27
28 // Test the oscillator node is rendered correctly when the start time of sta rt() 28 // Test the oscillator node is rendered correctly when the start time of sta rt()
29 // call is in the past in terms of the context time. 29 // call is in the past in terms of the context time.
30 runLateStartTest(audit, context, osc); 30 runLateStartTest(audit, context, osc);
31 31
32 successfullyParsed = true; 32 successfullyParsed = true;
33 </script> 33 </script>
34 </body> 34 </body>
35 35
36 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698