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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/gain.html

Issue 2567713002: Separating layout test utilities into audit-util.js (Closed)
Patch Set: 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 2
3 <!-- 3 <!--
4 Tests that GainNode is properly scaling the gain. 4 Tests that GainNode is properly scaling the gain.
5 We'll render 11 notes, starting at a gain of 1.0, decreasing in gain by 0.1. 5 We'll render 11 notes, starting at a gain of 1.0, decreasing in gain by 0.1.
6 The 11th note will be of gain 0.0, so it should be silent (at the end in the ren dered output). 6 The 11th note will be of gain 0.0, so it should be silent (at the end in the ren dered output).
7 --> 7 -->
8 8
9 <html> 9 <html>
10 <head> 10 <head>
11 <script type="text/javascript" src="resources/audio-testing.js"></script> 11 <script src="resources/audit-util.js"></script>
12 <script src="resources/audio-testing.js"></script>
12 13
13 </head> 14 </head>
14 <body> 15 <body>
15 16
16 <script> 17 <script>
17 18
18 window.onload = init; 19 window.onload = init;
19 20
20 var sampleRate = 44100.0; 21 var sampleRate = 44100.0;
21 var bufferDurationSeconds = 0.125; 22 var bufferDurationSeconds = 0.125;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 context.oncomplete = finishAudioTest; 76 context.oncomplete = finishAudioTest;
76 context.startRendering(); 77 context.startRendering();
77 78
78 testRunner.waitUntilDone(); 79 testRunner.waitUntilDone();
79 } 80 }
80 81
81 </script> 82 </script>
82 83
83 </body> 84 </body>
84 </html> 85 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698