Bug 1839311 [wpt PR 40635] - Prefetch WPT: use assertSpeculationRulesIsSupported...
commitacb98dbded3b31f43f6c4fa71ccd72af71af3979
authorDomenic Denicola <domenic@chromium.org>
Thu, 22 Jun 2023 11:51:51 +0000 (22 11:51 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 28 Jun 2023 09:47:36 +0000 (28 09:47 +0000)
treee05636e74214624b13b8829e0789d21c443207cf
parentc137a66b15a6f02e1d176ce40344afadf357bb9c
Bug 1839311 [wpt PR 40635] - Prefetch WPT: use assertSpeculationRulesIsSupported helper, a=testonly

Automatic update from web-platform-tests
Prefetch WPT: use assertSpeculationRulesIsSupported helper

This helper is shared between prerender and prefetch tests, using a new
utils.js file. We move to the style used in the prerendering tests, of
doing the assertion in a setup() block instead of in each test.

Since this involves touching every file anyway to add the new script,
this CL also sorts the script includes vs. the variant metas.

Bug: 1456579
Change-Id: I5059609c1284c25229728b6508aead834cce23da
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4623977
Commit-Queue: Domenic Denicola <domenic@chromium.org>
Reviewed-by: Lingqi Chi <lingqi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160467}

--

wpt-commits: e94623a20f4ab27721987741fbd62060466a5919
wpt-pr: 40635
26 files changed:
testing/web-platform/tests/speculation-rules/prefetch/anonymous-client.https.html
testing/web-platform/tests/speculation-rules/prefetch/cross-origin-cookies.https.html
testing/web-platform/tests/speculation-rules/prefetch/different-initiators-2.https.html
testing/web-platform/tests/speculation-rules/prefetch/different-initiators.sub.https.html
testing/web-platform/tests/speculation-rules/prefetch/document-rules.https.html
testing/web-platform/tests/speculation-rules/prefetch/duplicate-urls.https.html
testing/web-platform/tests/speculation-rules/prefetch/initiators-a-element.sub.https.html
testing/web-platform/tests/speculation-rules/prefetch/initiators-iframe-location-href.sub.https.html
testing/web-platform/tests/speculation-rules/prefetch/initiators-window-open.sub.https.html
testing/web-platform/tests/speculation-rules/prefetch/invalid-rules.https.html
testing/web-platform/tests/speculation-rules/prefetch/multiple-url.https.html
testing/web-platform/tests/speculation-rules/prefetch/navigation-timing-delivery-type.tentative.https.html
testing/web-platform/tests/speculation-rules/prefetch/navigation-timing-requestStart-responseStart.https.html
testing/web-platform/tests/speculation-rules/prefetch/navigation-timing-sizes.https.html
testing/web-platform/tests/speculation-rules/prefetch/no-vary-search/prefetch-single-with-hint.https.html
testing/web-platform/tests/speculation-rules/prefetch/no-vary-search/prefetch-single.https.html
testing/web-platform/tests/speculation-rules/prefetch/out-of-document-rule-set.https.html
testing/web-platform/tests/speculation-rules/prefetch/prefetch-single.https.html
testing/web-platform/tests/speculation-rules/prefetch/prefetch-status.https.html
testing/web-platform/tests/speculation-rules/prefetch/prefetch-traverse-reload.sub.html
testing/web-platform/tests/speculation-rules/prefetch/redirect-url.sub.https.html
testing/web-platform/tests/speculation-rules/prefetch/referrer-policy-from-rules.https.html
testing/web-platform/tests/speculation-rules/prefetch/referrer-policy-not-accepted.https.html
testing/web-platform/tests/speculation-rules/prefetch/referrer-policy.https.html
testing/web-platform/tests/speculation-rules/prefetch/same-origin-cookies.https.html
testing/web-platform/tests/speculation-rules/prefetch/user-pass.https.html