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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/Analyser/realtimeanalyser-multiple-calls.html

Issue 2599873003: Remove compatibility.js from WebAudio tests (Closed)
Patch Set: Rebasing Created 3 years, 11 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/testharness.js"></script> 4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script> 5 <script src="../../resources/testharnessreport.js"></script>
6 <script src="../resources/compatibility.js"></script>
7 <script src="../resources/audit-util.js"></script> 6 <script src="../resources/audit-util.js"></script>
8 <script src="../resources/audio-testing.js"></script> 7 <script src="../resources/audio-testing.js"></script>
9 <title>Test Multiple Calls to getFloatFrequencyData</title> 8 <title>Test Multiple Calls to getFloatFrequencyData</title>
10 </head> 9 </head>
11 10
12 <body> 11 <body>
13 <script> 12 <script>
14 var sampleRate = 48000; 13 var sampleRate = 48000;
15 // Render enough data to run the test. 14 // Render enough data to run the test.
16 var renderFrames = 2*1024; 15 var renderFrames = 2*1024;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 var scale = 255 / (maxDecibels - minDecibels); 115 var scale = 255 / (maxDecibels - minDecibels);
117 116
118 return floatFreqData.map(function (x) { 117 return floatFreqData.map(function (x) {
119 var value = Math.floor(scale * (x - minDecibels)); 118 var value = Math.floor(scale * (x - minDecibels));
120 return Math.min(255, Math.max(0, value)); 119 return Math.min(255, Math.max(0, value));
121 }); 120 });
122 } 121 }
123 </script> 122 </script>
124 </body> 123 </body>
125 </html> 124 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698