| 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/panner-formulas.js"></script> | 7 <script src="resources/panner-formulas.js"></script> |
| 8 <title>Test Automation of PannerNode Positions</title> | 8 <title>Test Automation of PannerNode Positions</title> |
| 9 </head> | 9 </head> |
| 10 | 10 |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 + options.startPosition[2] + "] -> [" | 244 + options.startPosition[2] + "] -> [" |
| 245 + options.endPosition[0] + ", " | 245 + options.endPosition[0] + ", " |
| 246 + options.endPosition[1] + ", " | 246 + options.endPosition[1] + ", " |
| 247 + options.endPosition[2] + "]: "; | 247 + options.endPosition[2] + "]: "; |
| 248 | 248 |
| 249 var errorThreshold = 0; | 249 var errorThreshold = 0; |
| 250 | 250 |
| 251 if (options.errorThreshold) | 251 if (options.errorThreshold) |
| 252 errorThreshold = options.errorThreshold[channelCount - 1] | 252 errorThreshold = options.errorThreshold[channelCount - 1] |
| 253 | 253 |
| 254 Should(prefix + "distanceModel: " + info + ", left channel", data0) | 254 Should(prefix + "distanceModel: " + info + ", left channel", data0,
{ |
| 255 precision: 5 |
| 256 }) |
| 255 .beCloseToArray(expected0, errorThreshold); | 257 .beCloseToArray(expected0, errorThreshold); |
| 256 Should(prefix + "distanceModel: " + info + ", right channel", data1) | 258 Should(prefix + "distanceModel: " + info + ", right channel", data1,
{ |
| 259 precision: 5 |
| 260 }) |
| 257 .beCloseToArray(expected1, errorThreshold); | 261 .beCloseToArray(expected1, errorThreshold); |
| 258 }); | 262 }); |
| 259 } | 263 } |
| 260 </script> | 264 </script> |
| 261 </body> | 265 </body> |
| 262 </html> | 266 </html> |
| OLD | NEW |