[webaudio] Migrate ctor-convolver.html from audit.js [chromium/src : main]

0 views
Skip to first unread message

Saqlain (Gerrit)

unread,
Jun 14, 2025, 4:17:59 PMJun 14
to Chromium LUCI CQ, Alvin Ji, Punith Nayak, chromium...@chromium.org, Hongchan Choi, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Alvin Ji and Michael Wilson

Saqlain added 1 comment

Patchset-level comments
File-level comment, Patchset 1:
Saqlain . resolved

FYI: `audionodeoptions.js` file was not being used even in old test file. so I removed it

Open in Gerrit

Related details

Attention is currently required from:
  • Alvin Ji
  • Michael Wilson
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I43ff67966a2db727e44950f196a284e01b12e850
Gerrit-Change-Number: 6634364
Gerrit-PatchSet: 1
Gerrit-Owner: Saqlain <2mesa...@gmail.com>
Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
Gerrit-Reviewer: Michael Wilson <mjwi...@chromium.org>
Gerrit-Reviewer: Saqlain <2mesa...@gmail.com>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-CC: Punith Nayak <punith...@chromium.org>
Gerrit-Attention: Alvin Ji <alv...@chromium.org>
Gerrit-Attention: Michael Wilson <mjwi...@chromium.org>
Gerrit-Comment-Date: Sat, 14 Jun 2025 20:17:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Alvin Ji (Gerrit)

unread,
Jun 16, 2025, 5:20:25 PMJun 16
to Saqlain, Chromium LUCI CQ, Punith Nayak, chromium...@chromium.org, Hongchan Choi, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Michael Wilson and Saqlain

Alvin Ji added 2 comments

File third_party/blink/web_tests/external/wpt/webaudio/the-audio-api/the-convolvernode-interface/ctor-convolver.html
Line 71, Patchset 2 (Latest): for (const entry of tests) {
for (const testItem of entry.tests) {
const options = {};
options[entry.attribute] = testItem.value;
Alvin Ji . unresolved
For better readability, perhaps:
```
for (const attributeTest of attributeTests) {
for (const testOption of attributeTest.testOptions) {
const options = {};
options[attributeTest.attribute] = testOption.value;
```
Line 94, Patchset 2 (Latest): }, "ConvolverNode: test AudioNodeOptions");
Alvin Ji . unresolved

nit: Perhaps be more descriptive "ConvolverNode constructor: AudioNodeOptions are correctly handled"

Open in Gerrit

Related details

Attention is currently required from:
  • Michael Wilson
  • Saqlain
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I43ff67966a2db727e44950f196a284e01b12e850
Gerrit-Change-Number: 6634364
Gerrit-PatchSet: 2
Gerrit-Owner: Saqlain <2mesa...@gmail.com>
Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
Gerrit-Reviewer: Michael Wilson <mjwi...@chromium.org>
Gerrit-Reviewer: Saqlain <2mesa...@gmail.com>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-CC: Punith Nayak <punith...@chromium.org>
Gerrit-Attention: Saqlain <2mesa...@gmail.com>
Gerrit-Attention: Michael Wilson <mjwi...@chromium.org>
Gerrit-Comment-Date: Mon, 16 Jun 2025 21:20:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Michael Wilson (Gerrit)

unread,
Jun 17, 2025, 6:41:36 PMJun 17
to Saqlain, Chromium LUCI CQ, Alvin Ji, Punith Nayak, chromium...@chromium.org, Hongchan Choi, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Saqlain

Michael Wilson added 3 comments

File third_party/blink/web_tests/external/wpt/webaudio/the-audio-api/the-convolvernode-interface/ctor-convolver.html
Line 25, Patchset 2 (Parent): testInvalidConstructor(should, 'ConvolverNode', context);
Michael Wilson . unresolved

Let's add the two other conditions from this too.

Line 27, Patchset 2 (Latest): assert_equals(node.channelCountMode, "clamped-max", `${prefix}.channelCountMode`);
assert_equals(node.channelInterpretation, "speakers", `${prefix}.channelInterpretation`);
Michael Wilson . unresolved

Nit: we should wrap these (and other) lines at 80 columns.

Line 79, Patchset 2 (Latest): if (testItem.error === TypeError) {
assert_throws_js(TypeError, () => {
new ConvolverNode(context, options);
}, desc);
} else {
assert_throws_dom(testItem.error, () => {
new ConvolverNode(context, options);
}, desc);
}
Michael Wilson . unresolved

I think these can be combined similarly to your other CL, what do you think?

Open in Gerrit

Related details

Attention is currently required from:
  • Saqlain
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I43ff67966a2db727e44950f196a284e01b12e850
Gerrit-Change-Number: 6634364
Gerrit-PatchSet: 2
Gerrit-Owner: Saqlain <2mesa...@gmail.com>
Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
Gerrit-Reviewer: Michael Wilson <mjwi...@chromium.org>
Gerrit-Reviewer: Saqlain <2mesa...@gmail.com>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-CC: Punith Nayak <punith...@chromium.org>
Gerrit-Attention: Saqlain <2mesa...@gmail.com>
Gerrit-Comment-Date: Tue, 17 Jun 2025 22:41:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Saqlain (Gerrit)

unread,
Jun 18, 2025, 5:33:36 PMJun 18
to Chromium LUCI CQ, Alvin Ji, Punith Nayak, chromium...@chromium.org, Hongchan Choi, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Alvin Ji and Michael Wilson

Saqlain added 5 comments

File third_party/blink/web_tests/external/wpt/webaudio/the-audio-api/the-convolvernode-interface/ctor-convolver.html
Line 25, Patchset 2 (Parent): testInvalidConstructor(should, 'ConvolverNode', context);
Michael Wilson . resolved

Let's add the two other conditions from this too.

Saqlain

Done

Line 27, Patchset 2: assert_equals(node.channelCountMode, "clamped-max", `${prefix}.channelCountMode`);

assert_equals(node.channelInterpretation, "speakers", `${prefix}.channelInterpretation`);
Michael Wilson . resolved

Nit: we should wrap these (and other) lines at 80 columns.

Saqlain

Done

Line 71, Patchset 2: for (const entry of tests) {

for (const testItem of entry.tests) {
const options = {};
options[entry.attribute] = testItem.value;
Alvin Ji . resolved
For better readability, perhaps:
```
for (const attributeTest of attributeTests) {
for (const testOption of attributeTest.testOptions) {
const options = {};
options[attributeTest.attribute] = testOption.value;
```
Saqlain

Done

Line 79, Patchset 2: if (testItem.error === TypeError) {

assert_throws_js(TypeError, () => {
new ConvolverNode(context, options);
}, desc);
} else {
assert_throws_dom(testItem.error, () => {
new ConvolverNode(context, options);
}, desc);
}
Michael Wilson . resolved

I think these can be combined similarly to your other CL, what do you think?

Saqlain

sure, I have combined it, in newer patch I have Defined createNode once so constructor call isolated in one place.

Line 94, Patchset 2: }, "ConvolverNode: test AudioNodeOptions");
Alvin Ji . resolved

nit: Perhaps be more descriptive "ConvolverNode constructor: AudioNodeOptions are correctly handled"

Saqlain

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Alvin Ji
  • Michael Wilson
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I43ff67966a2db727e44950f196a284e01b12e850
Gerrit-Change-Number: 6634364
Gerrit-PatchSet: 3
Gerrit-Owner: Saqlain <2mesa...@gmail.com>
Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
Gerrit-Reviewer: Michael Wilson <mjwi...@chromium.org>
Gerrit-Reviewer: Saqlain <2mesa...@gmail.com>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-CC: Punith Nayak <punith...@chromium.org>
Gerrit-Attention: Alvin Ji <alv...@chromium.org>
Gerrit-Attention: Michael Wilson <mjwi...@chromium.org>
Gerrit-Comment-Date: Wed, 18 Jun 2025 21:33:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Alvin Ji <alv...@chromium.org>
Comment-In-Reply-To: Michael Wilson <mjwi...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Michael Wilson (Gerrit)

unread,
Jun 18, 2025, 6:15:12 PMJun 18
to Saqlain, Chromium LUCI CQ, Alvin Ji, Punith Nayak, chromium...@chromium.org, Hongchan Choi, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Alvin Ji and Saqlain

Michael Wilson voted and added 1 comment

Votes added by Michael Wilson

Code-Review+1

1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Michael Wilson . resolved

LGTM

Open in Gerrit

Related details

Attention is currently required from:
  • Alvin Ji
  • Saqlain
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I43ff67966a2db727e44950f196a284e01b12e850
Gerrit-Change-Number: 6634364
Gerrit-PatchSet: 3
Gerrit-Owner: Saqlain <2mesa...@gmail.com>
Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
Gerrit-Reviewer: Michael Wilson <mjwi...@chromium.org>
Gerrit-Reviewer: Saqlain <2mesa...@gmail.com>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-CC: Punith Nayak <punith...@chromium.org>
Gerrit-Attention: Alvin Ji <alv...@chromium.org>
Gerrit-Attention: Saqlain <2mesa...@gmail.com>
Gerrit-Comment-Date: Wed, 18 Jun 2025 22:14:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Alvin Ji (Gerrit)

unread,
Jun 20, 2025, 8:00:44 PMJun 20
to Saqlain, Chromium LUCI CQ, Punith Nayak, chromium...@chromium.org, Hongchan Choi, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Saqlain

Alvin Ji voted and added 1 comment

Votes added by Alvin Ji

Code-Review+1

1 comment

Patchset-level comments
Alvin Ji . resolved

LGTM

Open in Gerrit

Related details

Attention is currently required from:
  • Saqlain
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I43ff67966a2db727e44950f196a284e01b12e850
Gerrit-Change-Number: 6634364
Gerrit-PatchSet: 3
Gerrit-Owner: Saqlain <2mesa...@gmail.com>
Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
Gerrit-Reviewer: Michael Wilson <mjwi...@chromium.org>
Gerrit-Reviewer: Saqlain <2mesa...@gmail.com>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-CC: Punith Nayak <punith...@chromium.org>
Gerrit-Attention: Saqlain <2mesa...@gmail.com>
Gerrit-Comment-Date: Sat, 21 Jun 2025 00:00:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Saqlain (Gerrit)

unread,
Jun 20, 2025, 10:15:11 PMJun 20
to Alvin Ji, Chromium LUCI CQ, Punith Nayak, chromium...@chromium.org, Hongchan Choi, blink-revie...@chromium.org, blink-...@chromium.org

Saqlain voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I43ff67966a2db727e44950f196a284e01b12e850
Gerrit-Change-Number: 6634364
Gerrit-PatchSet: 3
Gerrit-Owner: Saqlain <2mesa...@gmail.com>
Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
Gerrit-Reviewer: Michael Wilson <mjwi...@chromium.org>
Gerrit-Reviewer: Saqlain <2mesa...@gmail.com>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-CC: Punith Nayak <punith...@chromium.org>
Gerrit-Comment-Date: Sat, 21 Jun 2025 02:15:01 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Jun 20, 2025, 10:44:53 PMJun 20
to Saqlain, Alvin Ji, Punith Nayak, chromium...@chromium.org, Hongchan Choi, blink-revie...@chromium.org, blink-...@chromium.org

Chromium LUCI CQ submitted the change

Change information

Commit message:
[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
Bug: 396477778
Change-Id: I43ff67966a2db727e44950f196a284e01b12e850
Reviewed-by: Michael Wilson <mjwi...@chromium.org>
Reviewed-by: Alvin Ji <alv...@chromium.org>
Commit-Queue: Saqlain <2mesa...@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1476858}
Files:
  • M third_party/blink/web_tests/external/wpt/webaudio/the-audio-api/the-convolvernode-interface/ctor-convolver.html
Change size: L
Delta: 1 file changed, 113 insertions(+), 152 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Alvin Ji, +1 by Michael Wilson
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I43ff67966a2db727e44950f196a284e01b12e850
Gerrit-Change-Number: 6634364
Gerrit-PatchSet: 4
Gerrit-Owner: Saqlain <2mesa...@gmail.com>
Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Michael Wilson <mjwi...@chromium.org>
Gerrit-Reviewer: Saqlain <2mesa...@gmail.com>
open
diffy
satisfied_requirement

Blink W3C Test Autoroller (Gerrit)

unread,
Jun 20, 2025, 11:35:49 PMJun 20
to Saqlain, Chromium LUCI CQ, Alvin Ji, Punith Nayak, chromium...@chromium.org, Hongchan Choi, blink-revie...@chromium.org, blink-...@chromium.org

Message from Blink W3C Test Autoroller

The WPT PR for this CL has been merged upstream! https://github.com/web-platform-tests/wpt/pull/53310

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I43ff67966a2db727e44950f196a284e01b12e850
Gerrit-Change-Number: 6634364
Gerrit-PatchSet: 4
Gerrit-Owner: Saqlain <2mesa...@gmail.com>
Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Michael Wilson <mjwi...@chromium.org>
Gerrit-Reviewer: Saqlain <2mesa...@gmail.com>
Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-CC: Punith Nayak <punith...@chromium.org>
Gerrit-Comment-Date: Sat, 21 Jun 2025 03:35:41 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
open
diffy

Patricia Rios guerra (Gerrit)

unread,
Jun 24, 2025, 6:06:59 AMJun 24
to Saqlain, Chromium LUCI CQ, Blink W3C Test Autoroller, Alvin Ji, Punith Nayak, chromium...@chromium.org, Hongchan Choi, blink-revie...@chromium.org, blink-...@chromium.org

Patricia Rios guerra added 1 comment

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Patricia Rios guerra . resolved

Open

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I43ff67966a2db727e44950f196a284e01b12e850
Gerrit-Change-Number: 6634364
Gerrit-PatchSet: 4
Gerrit-Owner: Saqlain <2mesa...@gmail.com>
Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Michael Wilson <mjwi...@chromium.org>
Gerrit-Reviewer: Saqlain <2mesa...@gmail.com>
Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-CC: Patricia Rios guerra <paty_...@hotmail.com>
Gerrit-CC: Punith Nayak <punith...@chromium.org>
Gerrit-Comment-Date: Tue, 24 Jun 2025 10:06:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages