Bug 1609231 [wpt PR 21173] - ElementTiming and LargestContentfulPaint: add more redir...
commit427214db64f9507b5009ffa6aede0059054d2946
authorNicolás Peña Moreno <npm@chromium.org>
Tue, 21 Jan 2020 10:51:59 +0000 (21 10:51 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 23 Jan 2020 11:09:05 +0000 (23 11:09 +0000)
tree1f35ccc321e148e33b2a6dd9519d3d67419f605e
parent75c9df0e6b1f8702ebdd350b6184fbab7821096b
Bug 1609231 [wpt PR 21173] - ElementTiming and LargestContentfulPaint: add more redirect tests, a=testonly

Automatic update from web-platform-tests
ElementTiming and LargestContentfulPaint: add more redirect tests

This CL adds more tests for Timing-Allow-Origin checks in ElementTiming
and LargestContentfulPaint with multiple redirects. Before, we had tests
for:
* Single cross-origin response with a TAO header (image-TAO.sub.html).
* Multiple redirects, with '*' TAO header (multi-redirect-image.html).

This CL renames the latter to be more descriptive and adds:
* Same-origin redirect tests (should pass without TAO headers).
* Multi-cross-origin redirect tests with various TAO header values.

Bug: 1003943
Change-Id: Id44f0f18f143c8ca4ee3ca40c2383fa2ae22590c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2001070
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#732589}

--

wpt-commits: 606da537b95e54f4f1d53774ec03634f5902bc01
wpt-pr: 21173

--HG--
rename : testing/web-platform/tests/element-timing/resources/circle.svg.headers => testing/web-platform/tests/element-timing/resources/circle-tao.svg.headers
testing/web-platform/tests/element-timing/multiple-redirects-TAO.sub.html [new file with mode: 0644]
testing/web-platform/tests/element-timing/redirects-tao-star.html [moved from testing/web-platform/tests/element-timing/multi-redirect-image.html with 99% similarity]
testing/web-platform/tests/element-timing/resources/circle-tao.svg [new file with mode: 0644]
testing/web-platform/tests/element-timing/resources/circle-tao.svg.headers [moved from testing/web-platform/tests/element-timing/resources/circle.svg.headers with 100% similarity]
testing/web-platform/tests/element-timing/resources/element-timing-helpers.js
testing/web-platform/tests/element-timing/resources/multiple-redirects.py [new file with mode: 0644]
testing/web-platform/tests/element-timing/same-origin-redirects.html [new file with mode: 0644]
testing/web-platform/tests/largest-contentful-paint/redirects-tao-star.html [moved from testing/web-platform/tests/largest-contentful-paint/multi-redirects-TAO.html with 87% similarity]
testing/web-platform/tests/largest-contentful-paint/same-origin-redirects.html [new file with mode: 0644]