Bug 1859066 [wpt PR 42542] - Tests for TypeErrors in AudioWorkletGlobalScope.register...
commit9b3c83e2dfc5040a8d857b39dae91665f1a7f454
authorHongchan Choi <hongchan@chromium.org>
Thu, 26 Oct 2023 17:22:01 +0000 (26 17:22 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 31 Oct 2023 13:58:45 +0000 (31 13:58 +0000)
treebb1cbb59288ce31d69b1c76b9de585a834451bf9
parent895e40df0b05154b8fbefca9021e0d0f75a15289
Bug 1859066 [wpt PR 42542] - Tests for TypeErrors in AudioWorkletGlobalScope.registerProcessor(), a=testonly

Automatic update from web-platform-tests
Tests for TypeErrors in AudioWorkletGlobalScope.registerProcessor()

This CL add a test to verify TypeErrors that are thrown from
reigsterProcessor() method. It checks two cases:
 - When a given parameter is not a Function
 - When a given parameter is not a constructor

Bug: 1078902
Change-Id: Iba312bb558622ba68bcf850310c5cd87fa1d8655
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4939970
Commit-Queue: Hongchan Choi <hongchan@chromium.org>
Reviewed-by: Sina Firoozabadi <sinafirooz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1211158}

--

wpt-commits: 010fed9cf8f72f6c575d9334f50a057585bc989e
wpt-pr: 42542
testing/web-platform/tests/webaudio/the-audio-api/the-audioworklet-interface/audioworklet-registerprocessor-constructor.https.window.js [new file with mode: 0644]
testing/web-platform/tests/webaudio/the-audio-api/the-audioworklet-interface/processors/register-processor-typeerrors.js [new file with mode: 0644]