Basically looks good; please see other comments.
<title>AudioParam.setValueCurveAtTime (migrated)</title>
I don't think we need to write "(migrated")
<meta charset="utf-8">
I don't think we need this.
<!-- Web-Audio helper utilities (same as original) -->
I don't think we need this comment.
// Play a long DC signal out through an AudioGainNode and for each time
// interval call setValueCurveAtTime() to set the values for the duration
// of the interval. Each curve is a sine wave, and we assume that the
// time interval is not an exact multiple of the period. This causes a
// discontinuity between time intervals which is used to test timing.
Let's keep this comment.
// Max allowed difference between the rendered data and the expected
// result. Because of the linear interpolation, the rendered curve isn't
// exactly the same as the reference. This value is experimentally
// determined.
let maxAllowedError = 3.7194e-6;
Let's keep this comment because it says how the value was determined.
* very small subset of the Audit-style “should” API used by the helpers
* so that we don’t have to ship audit.js.
We shouldn't refer to audit.js in comments since we will be removing this file. Let's just say this is the minimum required functionality for createAudioGraphAndTest.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
<title>AudioParam.setValueCurveAtTime (migrated)</title>
I don't think we need to write "(migrated")
Done
I don't think we need this.
Done
<!-- Web-Audio helper utilities (same as original) -->
I don't think we need this comment.
Done
// Play a long DC signal out through an AudioGainNode and for each time
// interval call setValueCurveAtTime() to set the values for the duration
// of the interval. Each curve is a sine wave, and we assume that the
// time interval is not an exact multiple of the period. This causes a
// discontinuity between time intervals which is used to test timing.
Let's keep this comment.
Done
// Max allowed difference between the rendered data and the expected
// result. Because of the linear interpolation, the rendered curve isn't
// exactly the same as the reference. This value is experimentally
// determined.
let maxAllowedError = 3.7194e-6;
Let's keep this comment because it says how the value was determined.
Done
* very small subset of the Audit-style “should” API used by the helpers
* so that we don’t have to ship audit.js.
We shouldn't refer to audit.js in comments since we will be removing this file. Let's just say this is the minimum required functionality for createAudioGraphAndTest.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
LGTM
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +2 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[webaudio] Migrate setValueCurveAtTime test to testharness.js
Replaces audit.js-based test with testharness.js for improved
maintainability and consistency with WPT style.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
The WPT PR for this CL has been merged upstream! https://github.com/web-platform-tests/wpt/pull/53365
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |