Files
sousa-gecko/testing/web-platform/tests/webaudio
Mahesh Bharadwaj Kannan 55cf44e158 Bug 2040562 [wpt PR 59961] - [WebAudio] Fix WPT failures when bots have only 1 audio device, a=testonly
Automatic update from web-platform-tests
[WebAudio] Fix WPT failures when bots have only 1 audio device

Bots running headless_shell_wpt_tests often have only 1 audio
device (a dummy device). Previously, we had a strict assertion
in the test setup, causing all tests in the file to fail.

This CL removes the assertion from the setup and instead skips
the specific sub-tests that require an extra device by returning
early. Tests using the default or silent sink will now run safely.

Bug: 514359173, 514384316, 514528222
Change-Id: Ie9ab4aef70b5fa5fd1704e00c6c14b30169c342a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7856059
Reviewed-by: Michael Wilson <mjwilson@chromium.org>
Commit-Queue: Mahesh Kannan <kmaheshb@google.com>
Cr-Commit-Position: refs/heads/main@{#1632945}

--

wpt-commits: d9a60eaf78ef2fd9a3d7dcc3fdd414b0b70d202d
wpt-pr: 59961
2026-05-22 14:16:15 +00:00
..

Our test suite is currently tracking the editor's draft of the Web Audio API.

The tests are arranged in subdirectories, corresponding to different sections of the spec. So, for example, tests for the DelayNode are in the-audio-api/the-delaynode-interface.