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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/osc-negative-freq.html

Issue 2033503004: Avoid slow AudioParam automation path when possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 6 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 <head> 3 <head>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 <script src="resources/compatibility.js"></script> 5 <script src="resources/compatibility.js"></script>
6 <script src="resources/audio-testing.js"></script> 6 <script src="resources/audio-testing.js"></script>
7 <title>Test OscillatorNode with Negative Frequency</title> 7 <title>Test OscillatorNode with Negative Frequency</title>
8 </head> 8 </head>
9 9
10 <body> 10 <body>
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 oscNegative.connect(context.destination); 183 oscNegative.connect(context.destination);
184 184
185 oscPositive.start(); 185 oscPositive.start();
186 oscNegative.start(); 186 oscNegative.start();
187 187
188 return context.startRendering().then(function (buffer) { 188 return context.startRendering().then(function (buffer) {
189 var result = buffer.getChannelData(0); 189 var result = buffer.getChannelData(0);
190 190
191 var zero = new Float32Array(result.length); 191 var zero = new Float32Array(result.length);
192 zero.fill(0); 192 zero.fill(0);
193 Should(options.message, result).beCloseToArray(zero, options.threshold || 0); 193 Should(options.message, result, {
194 verbose: true
195 }).beCloseToArray(zero, options.threshold || 0);
194 }); 196 });
195 } 197 }
196 </script> 198 </script>
197 </body> 199 </body>
198 </html> 200 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698