Commit Graph
5 Commits
Author SHA1 Message Date
Philip Jägenstedt 0c1716ee28 Bug 1556717 [wpt PR 17164] - Wrap event handlers in Client Hints tests in t.step_func, a=testonly
Automatic update from web-platform-tests
Wrap event handlers in Client Hints tests in `t.step_func` (#17164)

Without this, any failed assert will cause a harness error instead of
failing the test.

Note that some problematic use like
`win.addEventListener('load', acceptChLifetimeLoaded, false)` remains,
but fixing these would require introducing new tests.
--

wp5At-commits: 8805e118d9d915a3bc72f6e18620243bb65ba20b
wpt-pr: 17164
2019-06-19 11:06:36 -07:00
Yuki Yamada c66b79fa00 Bug 1484147 [wpt PR 12542] - Modify source path for wpt test of Accept-CH, a=testonly
Automatic update from web-platform-testsModify source path for wpt test of Accept-CH

This CL modifies source path that is used in wpt test of Accept-CH.
window.open() uses the base URL of the entry realm's window in order to
resolve a relative URL.
The entry realm should be main window on calling function
|acceptChLoaded| as a listener for load event of non-main window in this
test.
We want to open do_not_expect_client_hints_headers.html in resources/
so the relative URL in this test should start from "resources/".

Also, entry realm is not set correctly by current chromium
implementation, so fixed test is assumed to fail.

Change-Id: I973393e0a7ca74cac882eb58f5a58aa9a81556ff
Reviewed-on: https://chromium-review.googlesource.com/1179511
Commit-Queue: Yuki Yamada <[email protected]>
Reviewed-by: Tarun Bansal <[email protected]>
Reviewed-by: Yuki Shiino <[email protected]>
Reviewed-by: Kentaro Hara <[email protected]>
Reviewed-by: Hitoshi Yoshida <[email protected]>
Cr-Commit-Position: refs/heads/master@{#584958}

--

wpt-commits: cd356d332be2a1edb92ae8bb185d0ff3fb40a176
wpt-pr: 12542
2018-08-29 10:09:04 +00:00
Tarun Bansal 3ca0b82aa9 Bug 1473362 [wpt PR 11778] - WPT tests for http-equiv Accept-CH-Lifetime, a=testonly
Automatic update from web-platform-testsWPT tests for http-equiv Accept-CH-Lifetime

WPT tests are added for:
(i) When ACL http-equiv header is sent by a same-origin iframe.
(ii) When ACL http-equiv header is sent by a cross-origin iframe.
(iii) When ACL http-equiv header is sent by a subresource.
(iv) When ACL http-equiv header is sent on the main frame.

Change-Id: Ie4adce0c1b5983a66ce3dce7bb6b77e30f63c03a
Bug: 852484
Reviewed-on: https://chromium-review.googlesource.com/1125212
Reviewed-by: Yoav Weiss <[email protected]>
Commit-Queue: Tarun Bansal <[email protected]>
Cr-Commit-Position: refs/heads/master@{#572706}

--

wpt-commits: f2fdea2d681d3618c7215e9333535c9585ec7171
wpt-pr: 11778
2018-07-11 08:04:41 +01:00
Tarun Bansal 5761fd8c54 Bug 1472306 [wpt PR 11735] - Add more WPT tests for client hints, a=testonly
Automatic update from web-platform-testsAdd more WPT tests for client hints

The WPT tests check the Accept-CH-Lifetime (ACL) header functionality.

Add tests for:
(i) When ACL header is sent by a same-origin iframe.
(ii) When ACL header is sent by a cross-origin iframe.
(iii) When ACL header is sent by a subresource.
(iv) When ACL header is sent on the main frame.

Also, change the ACL persistence time-duration from 20
seconds to 5 seconds to make it easier to run multiple tests
quickly and without waiting too long.

Change-Id: I31047598bbb1e7c64cadf3e6845bf850c29aca8b
Bug: 856700
Reviewed-on: https://chromium-review.googlesource.com/1119848
Commit-Queue: Tarun Bansal <[email protected]>
Reviewed-by: Yoav Weiss <[email protected]>
Cr-Commit-Position: refs/heads/master@{#572273}

--

wpt-commits: 59d4a411a8ead528f17b124b03c07387a3d43d07
wpt-pr: 11735
2018-07-11 08:03:45 +01:00
Tarun Bansal cc4bfb4752 Bug 1462837 [wpt PR 11081] - Add web platform test for Accept-CH-Lifetime header for client hints, a=testonly
Automatic update from web-platform-testsAdd web platform test for Accept-CH-Lifetime header for client hints

Bug: 817049
Change-Id: Ic58e5688b0bb14803a9b6f01100500dd567b9fbc
Reviewed-on: https://chromium-review.googlesource.com/1066919
Commit-Queue: Tarun Bansal <[email protected]>
Reviewed-by: Philip Jägenstedt <[email protected]>
Cr-Commit-Position: refs/heads/master@{#566359}

--

wpt-commits: 67ad035decf7726544cdd3ee877da1a29d37e41b
wpt-pr: 11081
2018-07-11 07:48:57 +01:00