| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Test Clamping of Distance for PannerNode</title> | 4 <title>Test Clamping of Distance for PannerNode</title> |
| 5 <script src="../../resources/testharness.js"></script> | 5 <script src="../../resources/testharness.js"></script> |
| 6 <script src="../../resources/testharnessreport.js"></script> | 6 <script src="../../resources/testharnessreport.js"></script> |
| 7 <script src="../resources/audit-util.js"></script> | 7 <script src="../resources/audit-util.js"></script> |
| 8 <script src="../resources/audio-testing.js"></script> | 8 <script src="../resources/audio-testing.js"></script> |
| 9 </head> | 9 </head> |
| 10 | 10 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 191 |
| 192 pannerRef.positionZ.setValueAtTime(xRef, 0); | 192 pannerRef.positionZ.setValueAtTime(xRef, 0); |
| 193 pannerTest.positionZ.setValueAtTime(xTest, 0); | 193 pannerTest.positionZ.setValueAtTime(xTest, 0); |
| 194 | 194 |
| 195 src.start(); | 195 src.start(); |
| 196 | 196 |
| 197 return context.startRendering().then(function (resultBuffer) { | 197 return context.startRendering().then(function (resultBuffer) { |
| 198 var actual = resultBuffer.getChannelData(0); | 198 var actual = resultBuffer.getChannelData(0); |
| 199 var expected = resultBuffer.getChannelData(1); | 199 var expected = resultBuffer.getChannelData(1); |
| 200 | 200 |
| 201 Should("Distance (" + xTest + ") is outside the range [" + | 201 Should("Model: " + options.distanceModel + ": Distance (" + xTest + ")
is outside the range [" + |
| 202 pannerRef.refDistance + ", " + pannerRef.maxDistance + "]", | 202 pannerRef.refDistance + ", " + pannerRef.maxDistance + "]", |
| 203 xTest < pannerRef.refDistance || xTest > pannerRef.maxDistance) | 203 xTest < pannerRef.refDistance || xTest > pannerRef.maxDistance) |
| 204 .beEqualTo(true); | 204 .beEqualTo(true); |
| 205 Should("Test panner output " + JSON.stringify(options), actual) | 205 Should("Test panner output " + JSON.stringify(options), actual) |
| 206 .beEqualToArray(expected); | 206 .beEqualToArray(expected); |
| 207 }); | 207 }); |
| 208 } | 208 } |
| 209 | 209 |
| 210 audit.runTasks(); | 210 audit.runTasks(); |
| 211 </script> | 211 </script> |
| 212 </body> | 212 </body> |
| 213 </html> | 213 </html> |
| OLD | NEW |