| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/testharness.js"></script> | 4 <script src="../../resources/testharness.js"></script> |
| 5 <script src="../../resources/testharnessreport.js"></script> | 5 <script src="../../resources/testharnessreport.js"></script> |
| 6 <script src="../resources/audit-util.js"></script> | 6 <script src="../resources/audit-util.js"></script> |
| 7 <script src="../resources/audio-testing.js"></script> | 7 <script src="../resources/audio-testing.js"></script> |
| 8 <script src="../resources/panner-formulas.js"></script> | 8 <script src="../resources/panner-formulas.js"></script> |
| 9 <title>Test Basic PannerNode with Automation Position Properties</title> | 9 <title>Test Basic PannerNode with Automation Position Properties</title> |
| 10 </head> | 10 </head> |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 success = Should(message + ".value frame " + middle + "channel 0", dat
a0.slice(0, suspendFrame)) | 222 success = Should(message + ".value frame " + middle + "channel 0", dat
a0.slice(0, suspendFrame)) |
| 223 .beConstantValueOf(data0[0]) && success; | 223 .beConstantValueOf(data0[0]) && success; |
| 224 success = Should(message + ".value frame " + middle + "channel 1", dat
a1.slice(0, suspendFrame)) | 224 success = Should(message + ".value frame " + middle + "channel 1", dat
a1.slice(0, suspendFrame)) |
| 225 .beConstantValueOf(data1[0]) && success; | 225 .beConstantValueOf(data1[0]) && success; |
| 226 | 226 |
| 227 // The rest after suspendTime should be constant and different from th
e first part. | 227 // The rest after suspendTime should be constant and different from th
e first part. |
| 228 middle = "[" + suspendFrame + ", " + renderFrames + ") "; | 228 middle = "[" + suspendFrame + ", " + renderFrames + ") "; |
| 229 success = Should(message + ".value frame " + middle + "channel 0", | 229 success = Should(message + ".value frame " + middle + "channel 0", |
| 230 data0.slice(suspendFrame)) | 230 data0.slice(suspendFrame)) |
| 231 .beConstantValueOf(data0[suspendFrame]) && success; | 231 .beConstantValueOf(data0[suspendFrame]) && success; |
| 232 success = Should(message + ".value frame " + middle + "channel 0", | 232 success = Should(message + ".value frame " + middle + "channel 1", |
| 233 data1.slice(suspendFrame)) | 233 data1.slice(suspendFrame)) |
| 234 .beConstantValueOf(data1[suspendFrame]) && success; | 234 .beConstantValueOf(data1[suspendFrame]) && success; |
| 235 success = Should("Output at frame " + suspendFrame + " channel 0", dat
a0[suspendFrame]) | 235 success = Should(message + ": Output at frame " + suspendFrame + " cha
nnel 0", data0[suspendFrame]) |
| 236 .notBeEqualTo(data0[0]) && success; | 236 .notBeEqualTo(data0[0]) && success; |
| 237 success = Should("Output at frame " + suspendFrame + " channel 1", dat
a1[suspendFrame]) | 237 success = Should(message + ": Output at frame " + suspendFrame + " cha
nnel 1", data1[suspendFrame]) |
| 238 .notBeEqualTo(data1[0]) && success; | 238 .notBeEqualTo(data1[0]) && success; |
| 239 | 239 |
| 240 var prefix = "Directly setting " + message + ".value"; | 240 var prefix = "Directly setting " + message + ".value"; |
| 241 Should(prefix, success) | 241 Should(prefix, success) |
| 242 .summarize("worked", "failed"); | 242 .summarize("worked", "failed"); |
| 243 } | 243 } |
| 244 </script> | 244 </script> |
| 245 </body> | 245 </body> |
| 246 </html> | 246 </html> |
| OLD | NEW |