| OLD | NEW |
| 1 <!doctype html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Test Convolver Channel Outputs for Response with 1 channel</title> | 4 <title> |
| 5 Test Convolver Channel Outputs for Response with 1 channel |
| 6 </title> |
| 5 <script src="../../resources/testharness.js"></script> | 7 <script src="../../resources/testharness.js"></script> |
| 6 <script src="../../resources/testharnessreport.js"></script> | 8 <script src="../../resources/testharnessreport.js"></script> |
| 7 <script src="../resources/audit-util.js"></script> | 9 <script src="../resources/audit-util.js"></script> |
| 8 <script src="../resources/audit.js"></script> | 10 <script src="../resources/audit.js"></script> |
| 9 </head> | 11 </head> |
| 10 | |
| 11 <body> | 12 <body> |
| 12 <script> | 13 <script id="layout-test-code"> |
| 13 // Test various convolver configurations when the convolver response has | 14 // Test various convolver configurations when the convolver response has |
| 14 // one channel (mono). | 15 // one channel (mono). |
| 15 // | 16 // |
| 16 // Fairly arbitrary sample rate, except that we want the rate to be a | 17 // Fairly arbitrary sample rate, except that we want the rate to be a |
| 17 // power of two so that 1/sampleRate is exactly respresentable as a | 18 // power of two so that 1/sampleRate is exactly respresentable as a |
| 18 // single-precision float. | 19 // single-precision float. |
| 19 let sampleRate = 8192; | 20 let sampleRate = 8192; |
| 20 | 21 |
| 21 // A fairly arbitrary number of frames, except the number of frames should | 22 // A fairly arbitrary number of frames, except the number of frames should |
| 22 // be more than a few render quanta. | 23 // be more than a few render quanta. |
| 23 let renderFrames = 10 * 128; | 24 let renderFrames = 10 * 128; |
| 24 | 25 |
| 25 let audit = Audit.createTaskRunner(); | 26 let audit = Audit.createTaskRunner(); |
| 26 | 27 |
| 27 // Convolver response | 28 // Convolver response |
| 28 let response; | 29 let response; |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 .beEqualToArray(expected0); | 222 .beEqualToArray(expected0); |
| 222 should(actual1, options.prefix + ': Channel 1') | 223 should(actual1, options.prefix + ': Channel 1') |
| 223 .beEqualToArray(expected1); | 224 .beEqualToArray(expected1); |
| 224 }); | 225 }); |
| 225 } | 226 } |
| 226 | 227 |
| 227 audit.run(); | 228 audit.run(); |
| 228 </script> | 229 </script> |
| 229 </body> | 230 </body> |
| 230 </html> | 231 </html> |
| OLD | NEW |