OLD | NEW |
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/audit-util.js"></script> | 6 <script src="../resources/audit-util.js"></script> |
7 <script src="resources/audio-testing.js"></script> | 7 <script src="../resources/audio-testing.js"></script> |
8 <script src="resources/realtimeanalyser-testing.js"></script> | 8 <script src="../resources/realtimeanalyser-testing.js"></script> |
9 <script src="resources/fft.js"></script> | 9 <script src="../resources/fft.js"></script> |
10 <title>Test Analyser getFloatFrequencyData and getByteFrequencyData, No Smoo
thing</title> | 10 <title>Test Analyser getFloatFrequencyData and getByteFrequencyData, No Smoo
thing</title> |
11 </head> | 11 </head> |
12 | 12 |
13 <body> | 13 <body> |
14 <script> | 14 <script> |
15 description("Test AnalyserNode getFloatFrequencyData and getByteFrequencyD
ata, no Smoothing"); | 15 description("Test AnalyserNode getFloatFrequencyData and getByteFrequencyD
ata, no Smoothing"); |
16 window.jsTestIsAsync = true; | 16 window.jsTestIsAsync = true; |
17 | 17 |
18 // Use a power of two to eliminate any round-off in the computation of the
times for | 18 // Use a power of two to eliminate any round-off in the computation of the
times for |
19 // context.suspend(). | 19 // context.suspend(). |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 basicTestsPassed = Should(analyser.fftSize + "-point byte FFT", byteFr
eqData) | 206 basicTestsPassed = Should(analyser.fftSize + "-point byte FFT", byteFr
eqData) |
207 .beCloseToArray(expectedByteData, 0) && basicTestsPassed; | 207 .beCloseToArray(expectedByteData, 0) && basicTestsPassed; |
208 | 208 |
209 }).then(context.resume.bind(context)); | 209 }).then(context.resume.bind(context)); |
210 | 210 |
211 return context.startRendering(); | 211 return context.startRendering(); |
212 } | 212 } |
213 </script> | 213 </script> |
214 </body> | 214 </body> |
215 </html> | 215 </html> |
OLD | NEW |