| 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/audio-testing.js"></script> | 7 <script src="resources/audio-testing.js"></script> |
| 7 <script src="resources/realtimeanalyser-testing.js"></script> | 8 <script src="resources/realtimeanalyser-testing.js"></script> |
| 8 <script src="resources/fft.js"></script> | 9 <script src="resources/fft.js"></script> |
| 9 <title>Test Analyser getFloatFrequencyData and getByteFrequencyData, No Smoo
thing</title> | 10 <title>Test Analyser getFloatFrequencyData and getByteFrequencyData, No Smoo
thing</title> |
| 10 </head> | 11 </head> |
| 11 | 12 |
| 12 <body> | 13 <body> |
| 13 <script> | 14 <script> |
| 14 description("Test AnalyserNode getFloatFrequencyData and getByteFrequencyD
ata, no Smoothing"); | 15 description("Test AnalyserNode getFloatFrequencyData and getByteFrequencyD
ata, no Smoothing"); |
| 15 window.jsTestIsAsync = true; | 16 window.jsTestIsAsync = true; |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 basicTestsPassed = Should(analyser.fftSize + "-point byte FFT", byteFr
eqData) | 206 basicTestsPassed = Should(analyser.fftSize + "-point byte FFT", byteFr
eqData) |
| 206 .beCloseToArray(expectedByteData, 0) && basicTestsPassed; | 207 .beCloseToArray(expectedByteData, 0) && basicTestsPassed; |
| 207 | 208 |
| 208 }).then(context.resume.bind(context)); | 209 }).then(context.resume.bind(context)); |
| 209 | 210 |
| 210 return context.startRendering(); | 211 return context.startRendering(); |
| 211 } | 212 } |
| 212 </script> | 213 </script> |
| 213 </body> | 214 </body> |
| 214 </html> | 215 </html> |
| OLD | NEW |