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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/ConstantSource/constant-source-onended.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 <head> 3 <head>
4 <title>Test ConstantSourceNode onended</title> 4 <title>Test ConstantSourceNode onended</title>
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/audio-testing.js"></script>
9 </head> 9 </head>
10 10
11 <body> 11 <body>
12 <script> 12 <script>
13 var sampleRate = 44100.0; 13 var sampleRate = 44100.0;
14 // Number of frames that the source will run; fairly arbitrary 14 // Number of frames that the source will run; fairly arbitrary
15 var numberOfFrames = 32; 15 var numberOfFrames = 32;
16 // Number of frames to render; arbitrary, but should be larger than 16 // Number of frames to render; arbitrary, but should be larger than
17 // numberOfFrames; 17 // numberOfFrames;
18 var renderFrames = 16 * numberOfFrames; 18 var renderFrames = 16 * numberOfFrames;
(...skipping 12 matching lines...) Expand all
31 }; 31 };
32 32
33 src.start(); 33 src.start();
34 src.stop(numberOfFrames / context.sampleRate); 34 src.stop(numberOfFrames / context.sampleRate);
35 35
36 context.startRendering(); 36 context.startRendering();
37 37
38 </script> 38 </script>
39 </body> 39 </body>
40 </html> 40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698