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

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

Issue 2804633004: Convert Oscillator tests to new Audit (Closed)
Patch Set: Address review comments Created 3 years, 8 months 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/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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698