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/audio-testing.js"></script> | 6 <script src="resources/audio-testing.js"></script> |
7 <script src="resources/realtimeanalyser-testing.js"></script> | 7 <script src="resources/realtimeanalyser-testing.js"></script> |
8 <script src="resources/fft.js"></script> | 8 <script src="resources/fft.js"></script> |
9 <title>Test Analyser getFloatFrequencyData and getByteFrequencyData, No Smoo
thing</title> | 9 <title>Test Analyser getFloatFrequencyData and getByteFrequencyData, No Smoo
thing</title> |
10 </head> | 10 </head> |
(...skipping 27 matching lines...) Expand all Loading... |
38 order: 6, | 38 order: 6, |
39 floatRelError: 6.8366e-6 | 39 floatRelError: 6.8366e-6 |
40 }, { | 40 }, { |
41 order: 7, | 41 order: 7, |
42 floatRelError: 1.4602e-6 | 42 floatRelError: 1.4602e-6 |
43 }, { | 43 }, { |
44 order: 8, | 44 order: 8, |
45 floatRelError: 8.4828e-7 | 45 floatRelError: 8.4828e-7 |
46 }, { | 46 }, { |
47 order: 9, | 47 order: 9, |
48 floatRelError: 1.6568e-5 | 48 floatRelError: 2.3906e-5 |
49 }, { | 49 }, { |
50 order: 10, | 50 order: 10, |
51 floatRelError: 1.2765e-5 | 51 floatRelError: 1.2765e-5 |
52 }, { | 52 }, { |
53 order: 11, | 53 order: 11, |
54 floatRelError: 8.4920e-6, | 54 floatRelError: 8.4920e-6, |
55 }, { | 55 }, { |
56 order: 12, | 56 order: 12, |
57 floatRelError: 4.3344e-7 | 57 floatRelError: 4.3344e-7 |
58 }, { | 58 }, { |
59 order: 13, | 59 order: 13, |
60 floatRelError: 2.2798e-7 | 60 floatRelError: 3.1314e-7 |
61 }, { | 61 }, { |
62 order: 14, | 62 order: 14, |
63 floatRelError: 1.1756e-7 | 63 floatRelError: 1.1756e-7 |
64 }, { | 64 }, { |
65 order: 15, | 65 order: 15, |
66 floatRelError: 1.1675e-7 | 66 floatRelError: 1.1756e-7 |
67 }]; | 67 }]; |
68 | 68 |
69 // True if all of the basic tests passed. | 69 // True if all of the basic tests passed. |
70 var basicTestsPassed = true; | 70 var basicTestsPassed = true; |
71 | 71 |
72 // Generate tests for each entry in testConfig. | 72 // Generate tests for each entry in testConfig. |
73 for (var k = 0; k < testConfig.length; ++k) { | 73 for (var k = 0; k < testConfig.length; ++k) { |
74 var name = testConfig[k].order + "-order FFT"; | 74 var name = testConfig[k].order + "-order FFT"; |
75 (function (config) { | 75 (function (config) { |
76 audit.defineTask(name, function (done) { | 76 audit.defineTask(name, function (done) { |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 verbose: true | 202 verbose: true |
203 }).beCloseToArray(expectedByteData, 0) && basicTestsPassed; | 203 }).beCloseToArray(expectedByteData, 0) && basicTestsPassed; |
204 | 204 |
205 }).then(context.resume.bind(context)); | 205 }).then(context.resume.bind(context)); |
206 | 206 |
207 return context.startRendering(); | 207 return context.startRendering(); |
208 } | 208 } |
209 </script> | 209 </script> |
210 </body> | 210 </body> |
211 </html> | 211 </html> |
OLD | NEW |