Bug 1733595 [wpt PR 31047] - Let <script type=webbundle> WPT fail early if it's not...
commit187193e1ecd5345779783b02e4f7de47cc49a0ff
authorKunihiko Sakamoto <ksakamoto@chromium.org>
Mon, 4 Oct 2021 23:18:57 +0000 (4 23:18 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 5 Oct 2021 12:49:10 +0000 (5 12:49 +0000)
tree81787e81cd585be085f7e734c36778bb89921fec
parent8de558dacfacae5297e5c8b972d34f82abe59bf6
Bug 1733595 [wpt PR 31047] - Let <script type=webbundle> WPT fail early if it's not supported, a=testonly

Automatic update from web-platform-tests
Let <script type=webbundle> WPT fail early if it's not supported

Although these tests are marked as [ Skip ] in Chromium TestExpectation,
other CIs (e.g. github.com/web-platform-tests/wpt PR checks) still try
to run these tests, sometimes getting unstable results.

This adds HTMLScriptElement.supports('webbundle') check in the setup
step of these tests, so that browsers that do not support
<script type=webbundle> will immediately fail.

Bug: 1245166
Change-Id: Id3e2974f20201dafeb8097402e691d1337c19439
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3198062
Reviewed-by: Tsuyoshi Horo <horo@chromium.org>
Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org>
Cr-Commit-Position: refs/heads/main@{#927078}

--

wpt-commits: e5dd8ffc4f1a5d4aa2c5431613295cb9649aca0b
wpt-pr: 31047
17 files changed:
testing/web-platform/tests/web-bundle/subresource-loading/script-accept-header.https.tentative.html
testing/web-platform/tests/web-bundle/subresource-loading/script-element-removal.https.tentative.html
testing/web-platform/tests/web-bundle/subresource-loading/script-nested-bundle.https.tentative.html
testing/web-platform/tests/web-bundle/subresource-loading/script-network-error.https.tentative.html
testing/web-platform/tests/web-bundle/subresource-loading/script-not-found.https.tentative.html
testing/web-platform/tests/web-bundle/subresource-loading/script-path-restriction.https.tentative.html
testing/web-platform/tests/web-bundle/subresource-loading/script-relative-url-in-web-bundle-cors.https.tentative.sub.html
testing/web-platform/tests/web-bundle/subresource-loading/script-relative-url-in-web-bundle.https.tentative.html
testing/web-platform/tests/web-bundle/subresource-loading/script-relative-url-with-base.https.tentative.html
testing/web-platform/tests/web-bundle/subresource-loading/script-relative-url.https.tentative.html
testing/web-platform/tests/web-bundle/subresource-loading/script-request-destination.https.tentative.html
testing/web-platform/tests/web-bundle/subresource-loading/script-resource-timing-attributes-consistent.https.tentative.html
testing/web-platform/tests/web-bundle/subresource-loading/script-resource-timing.https.tentative.html
testing/web-platform/tests/web-bundle/subresource-loading/script-service-worker-controlled.https.tentative.html
testing/web-platform/tests/web-bundle/subresource-loading/script-static-element-with-base.https.tentative.sub.html
testing/web-platform/tests/web-bundle/subresource-loading/script-static-element.https.tentative.sub.html
testing/web-platform/tests/web-bundle/subresource-loading/script-subframe-from-web-bundle.https.tentative.html