FYI: `audionodeoptions.js` file was not being used even in old test file. so I removed it
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
for (const entry of tests) {
for (const testItem of entry.tests) {
const options = {};
options[entry.attribute] = testItem.value;
For better readability, perhaps:
```
for (const attributeTest of attributeTests) {
for (const testOption of attributeTest.testOptions) {
const options = {};
options[attributeTest.attribute] = testOption.value;
```
}, "ConvolverNode: test AudioNodeOptions");
nit: Perhaps be more descriptive "ConvolverNode constructor: AudioNodeOptions are correctly handled"
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
testInvalidConstructor(should, 'ConvolverNode', context);
Let's add the two other conditions from this too.
assert_equals(node.channelCountMode, "clamped-max", `${prefix}.channelCountMode`);
assert_equals(node.channelInterpretation, "speakers", `${prefix}.channelInterpretation`);
Nit: we should wrap these (and other) lines at 80 columns.
if (testItem.error === TypeError) {
assert_throws_js(TypeError, () => {
new ConvolverNode(context, options);
}, desc);
} else {
assert_throws_dom(testItem.error, () => {
new ConvolverNode(context, options);
}, desc);
}
I think these can be combined similarly to your other CL, what do you think?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
testInvalidConstructor(should, 'ConvolverNode', context);
Let's add the two other conditions from this too.
Done
assert_equals(node.channelCountMode, "clamped-max", `${prefix}.channelCountMode`);
assert_equals(node.channelInterpretation, "speakers", `${prefix}.channelInterpretation`);
Nit: we should wrap these (and other) lines at 80 columns.
Done
for (const entry of tests) {
for (const testItem of entry.tests) {
const options = {};
options[entry.attribute] = testItem.value;
For better readability, perhaps:
```
for (const attributeTest of attributeTests) {
for (const testOption of attributeTest.testOptions) {
const options = {};
options[attributeTest.attribute] = testOption.value;
```
Done
if (testItem.error === TypeError) {
assert_throws_js(TypeError, () => {
new ConvolverNode(context, options);
}, desc);
} else {
assert_throws_dom(testItem.error, () => {
new ConvolverNode(context, options);
}, desc);
}
I think these can be combined similarly to your other CL, what do you think?
sure, I have combined it, in newer patch I have Defined createNode once so constructor call isolated in one place.
nit: Perhaps be more descriptive "ConvolverNode constructor: AudioNodeOptions are correctly handled"
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 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[webaudio] Migrate ctor-convolver.html from audit.js
This change migrates WebAudio tests from the custom `audit.js` framework
to the W3C-standard `testharness.js` specifically targeting dir
third_party/blink/web_tests/external/wpt/webaudio/the-audio-api
/the-convolvernode-interface/ctor-convolver.html, supporting Chromium's
ongoing effort to deprecate `audit.js` in favor of a more consistent
testing approach.
The following test files have been updated:
- ctor-convolver.html
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/53310
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |