| 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/audit-util.js"></script> |
| 6 <script src="resources/audio-testing.js"></script> | 7 <script src="resources/audio-testing.js"></script> |
| 7 <title>Test Clamping of Automations</title> | 8 <title>Test Clamping of Automations</title> |
| 8 </head> | 9 </head> |
| 9 | 10 |
| 10 <body> | 11 <body> |
| 11 <script> | 12 <script> |
| 12 description("Test Clamping of Automations."); | 13 description("Test Clamping of Automations."); |
| 13 window.jsTestIsAsync = true; | 14 window.jsTestIsAsync = true; |
| 14 | 15 |
| 15 // Some arbitrary sample rate for the offline context. | 16 // Some arbitrary sample rate for the offline context. |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // | 124 // |
| 124 // Then | 125 // Then |
| 125 // | 126 // |
| 126 // t = (t0 * v1 - t1 * v0 + (t1 - t0) * v) / (v1 - v0) | 127 // t = (t0 * v1 - t1 * v0 + (t1 - t0) * v) / (v1 - v0) |
| 127 // | 128 // |
| 128 return (t0 * v1 - t1 * v0 + (t1 - t0) * v) / (v1 - v0); | 129 return (t0 * v1 - t1 * v0 + (t1 - t0) * v) / (v1 - v0); |
| 129 } | 130 } |
| 130 </script> | 131 </script> |
| 131 </body> | 132 </body> |
| 132 </html> | 133 </html> |
| OLD | NEW |