| OLD | NEW |
| 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/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> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 var audit = Audit.createTaskRunner(); | 24 var audit = Audit.createTaskRunner(); |
| 25 | 25 |
| 26 // Options for basic tests of the AnalyserNode frequency domain data. The
thresholds are | 26 // Options for basic tests of the AnalyserNode frequency domain data. The
thresholds are |
| 27 // experimentally determined. | 27 // experimentally determined. |
| 28 var testConfig = [{ | 28 var testConfig = [{ |
| 29 order: 5, | 29 order: 5, |
| 30 // For this order, need to specify a higher minDecibels value for the an
alyser because the | 30 // For this order, need to specify a higher minDecibels value for the an
alyser because the |
| 31 // FFT doesn't get that small. This allows us to test that (a changed) m
inDecibels has an | 31 // FFT doesn't get that small. This allows us to test that (a changed) m
inDecibels has an |
| 32 // effect and that we properly clip the byte data. | 32 // effect and that we properly clip the byte data. |
| 33 minDecibels: -50, | 33 minDecibels: -50, |
| 34 floatRelError: 6.8964e-7, | 34 floatRelError: 9.6549e-7, |
| 35 }, { | 35 }, { |
| 36 order: 6, | 36 order: 6, |
| 37 floatRelError: 6.8366e-6 | 37 floatRelError: 6.8366e-6 |
| 38 }, { | 38 }, { |
| 39 order: 7, | 39 order: 7, |
| 40 floatRelError: 1.4602e-6 | 40 floatRelError: 1.4602e-6 |
| 41 }, { | 41 }, { |
| 42 order: 8, | 42 order: 8, |
| 43 floatRelError: 8.4828e-7 | 43 floatRelError: 8.4828e-7 |
| 44 }, { | 44 }, { |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 basicTestsPassed = Should(analyser.fftSize + "-point byte FFT", byteFr
eqData) | 198 basicTestsPassed = Should(analyser.fftSize + "-point byte FFT", byteFr
eqData) |
| 199 .beCloseToArray(expectedByteData, 0) && basicTestsPassed; | 199 .beCloseToArray(expectedByteData, 0) && basicTestsPassed; |
| 200 | 200 |
| 201 }).then(context.resume.bind(context)); | 201 }).then(context.resume.bind(context)); |
| 202 | 202 |
| 203 return context.startRendering(); | 203 return context.startRendering(); |
| 204 } | 204 } |
| 205 </script> | 205 </script> |
| 206 </body> | 206 </body> |
| 207 </html> | 207 </html> |
| OLD | NEW |