Bug 1691099 [wpt PR 27512] - Reorganize and augment beacon wpt, a=testonly
commitd92e285aca893474bf1215f58347bffbd5f3444f
authorYutaka Hirano <yhirano@chromium.org>
Thu, 11 Feb 2021 16:47:56 +0000 (11 16:47 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 12 Feb 2021 06:21:56 +0000 (12 06:21 +0000)
tree6f9e26dd2c437e13a61708a99ef6b3e58b56b74c
parentefffc8976cd6f93edf66d0fcbca19b5150921d86
Bug 1691099 [wpt PR 27512] - Reorganize and augment beacon wpt, a=testonly

Automatic update from web-platform-tests
Reorganize and augment beacon wpt

 - Run tests on secure contexts. I'm planning to use the sec-fetch-mode
   header once WebKit supports it, which is only available on secure
   contexts.
 - Replace html files with window.js files.
 - Merge many beacon-basic-* files into beacon-basic.https.window.js.
   This is doable because the payload size limit is per context, not
   per page.
 - Merge beacon-readablestream.js and beacon-error.sub.window.js into
   beacon-basic.https.window.js.
 - Merge beacon-preflight-failure.sub.window.js into
   beacon-cors.https.window.js.
 - Add more cross origin tests in beacon-cors.https.window.js.
 - Slim down beacon-common.sub.js.

Also remove some test files in http/tests/sendbeacon, because they are
covered by wpt/beacon.

Bug: 720303
Change-Id: Id65c70d290753428d5d17bc8e9e783969ff8bc16
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2677465
Commit-Queue: Yutaka Hirano <yhirano@chromium.org>
Reviewed-by: Dominic Farolino <dom@chromium.org>
Cr-Commit-Position: refs/heads/master@{#852515}

--

wpt-commits: a341862f7bf55470eb456fbdbb20e465508e7cb9
wpt-pr: 27512
20 files changed:
testing/web-platform/tests/beacon/beacon-basic-blob.html [deleted file]
testing/web-platform/tests/beacon/beacon-basic-blobMax.html [deleted file]
testing/web-platform/tests/beacon/beacon-basic-buffersource.html [deleted file]
testing/web-platform/tests/beacon/beacon-basic-buffersourceMax.html [deleted file]
testing/web-platform/tests/beacon/beacon-basic-formdata.html [deleted file]
testing/web-platform/tests/beacon/beacon-basic-formdataMax.html [deleted file]
testing/web-platform/tests/beacon/beacon-basic-string.html [deleted file]
testing/web-platform/tests/beacon/beacon-basic-stringMax.html [deleted file]
testing/web-platform/tests/beacon/beacon-basic.https.window.js [new file with mode: 0644]
testing/web-platform/tests/beacon/beacon-common.sub.js
testing/web-platform/tests/beacon/beacon-cors.https.window.js [new file with mode: 0644]
testing/web-platform/tests/beacon/beacon-cors.sub.window.js [deleted file]
testing/web-platform/tests/beacon/beacon-error.sub.window.js [deleted file]
testing/web-platform/tests/beacon/beacon-navigate.html [deleted file]
testing/web-platform/tests/beacon/beacon-navigate.https.window.js [new file with mode: 0644]
testing/web-platform/tests/beacon/beacon-preflight-failure.sub.window.js [deleted file]
testing/web-platform/tests/beacon/beacon-readablestream.window.js [deleted file]
testing/web-platform/tests/beacon/beacon-redirect.https.window.js [new file with mode: 0644]
testing/web-platform/tests/beacon/beacon-redirect.sub.window.js [deleted file]
testing/web-platform/tests/beacon/resources/beacon.py