gecko-dev/testing/web-platform/tests/beacon
Yutaka Hirano c92c4a5f3b Bug 1616178 [wpt PR 21847] - Simplify beacon wpt, a=testonly
Automatic update from web-platform-tests
Simplify beacon wpt

beacon-common.sub.js and resources/beacon.py seems over-generalizing
things. This change simplifies them.

 - Unify "sid", "tidx_min" and "tidx_max" parameters in beacon.py
   because all scripts specify the same index for "tidx_min" and
   "tidx_max". They are unified to one identifier parameter called "id".
 - Remove the "session" concept which is not very used.
 - Remove the "tid" parameter from beacon.py as the client-side script
   has the information.
 - Rename testCase.id to testCase.name because it's not token()-based
   id.
 - Stop cloning test cases in various places by stopping attaching
   temporary values to test cases. The "suffix" parameter is
   introduced to runTests for this purpose.
 - Remove buildBaseUrl and buildTargetUrl. They are combined, and
   moved to the "buildUrl" parameter in runTests.

Also ran yapf --style pep8 for resources/beacon.py.

Bug: None
Change-Id: Ia3e91019be4a620e14c5d2414b14e56d7303635b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2061633
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Commit-Queue: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#745870}

--

wpt-commits: 1589afc742118b2421657b8376e561d670480d6f
wpt-pr: 21847
2020-03-05 10:49:29 +00:00
..
headers
resources
beacon-basic-blob.html
beacon-basic-blobMax.html
beacon-basic-buffersource.html
beacon-basic-buffersourceMax.html
beacon-basic-formdata.html
beacon-basic-formdataMax.html
beacon-basic-string.html
beacon-basic-stringMax.html
beacon-common.sub.js
beacon-cors.sub.window.js
beacon-error.sub.window.js
beacon-navigate.html
beacon-preflight-failure.sub.window.js
beacon-readablestream.window.js
beacon-redirect.sub.window.js
idlharness.any.js
META.yml