зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1761236 [wpt PR 33349] - Consolidate header files for client hint WPTs, a=testonly
Automatic update from web-platform-tests Consolidate header files for client hint WPTs Move files with the same "Accept-CH" header to their own directory, remove "Accept-CH" line from header file, and add "__dir__.headers" file This will make it easier to update header files for added hints in later CLs No values were changed, only moved Bug: 1304740 Change-Id: I065eb85ab8f10a79161366fa491b1f30a22a097e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3542073 Reviewed-by: Ali Beyad <abeyad@chromium.org> Commit-Queue: Victor Tan <victortan@chromium.org> Cr-Commit-Position: refs/heads/main@{#992261} -- wpt-commits: 89d5523c9ef343688f4a83a63a22e84ebc010544 wpt-pr: 33349
This commit is contained in:
Родитель
4316bb6393
Коммит
b424ff06da
|
@ -1 +0,0 @@
|
|||
Accept-CH: sec-ch-dpr,dpr,sec-ch-device-memory,device-memory,sec-ch-viewport-width,viewport-width,rtt,downlink,ect,sec-ch-ua,sec-ch-ua-arch,sec-ch-ua-platform,sec-ch-ua-platform-version,sec-ch-ua-model,sec-ch-prefers-color-scheme,sec-ch-viewport-height
|
|
@ -1,2 +0,0 @@
|
|||
Accept-CH: sec-ch-device-memory, device-memory, sec-ch-dpr, dpr, sec-ch-viewport-width, viewport-width, rtt, downlink, ect, mobile, sec-ch-prefers-color-scheme, sec-ch-viewport-height
|
||||
Feature-Policy: ch-device-memory *; ch-dpr 'none'; ch-viewport-width 'self'; ch-mobile; ch-prefers-color-scheme 'none'; ch-viewport-height 'none'
|
|
@ -1 +0,0 @@
|
|||
Accept-CH: sec-ch-device-memory, device-memory, sec-ch-dpr, dpr, sec-ch-viewport-width, viewport-width, rtt, downlink, ect
|
|
@ -37,13 +37,13 @@ promise_test(async (test) => {
|
|||
"sec-ch-viewport-height",
|
||||
];
|
||||
|
||||
const response = await fetch(`resources/stale-echo-client-hints.py?token=` + request_token);
|
||||
const response2 = await fetch(`resources/stale-echo-client-hints.py?token=` + request_token);
|
||||
const response = await fetch(`/client-hints/resources/stale-echo-client-hints.py?token=` + request_token);
|
||||
const response2 = await fetch(`/client-hints/resources/stale-echo-client-hints.py?token=` + request_token);
|
||||
|
||||
assert_equals(response.headers.get('Unique-Id'), response2.headers.get('Unique-Id'));
|
||||
|
||||
while(true) {
|
||||
const revalidation_check = await fetch(`resources/stale-echo-client-hints.py?query&token=` + request_token);
|
||||
const revalidation_check = await fetch(`/client-hints/resources/stale-echo-client-hints.py?query&token=` + request_token);
|
||||
if (revalidation_check.headers.get('Count') == '2') {
|
||||
client_hint_headers.forEach(header => {
|
||||
assert_equals(revalidation_check.headers.get(header+"-recieved"), revalidation_check.headers.get(header+"-previous"));
|
|
@ -3,7 +3,7 @@
|
|||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/common/get-host-info.sub.js"></script>
|
||||
<script src="resources/feature-policy-navigation.js"></script>
|
||||
<script src="/client-hints/resources/feature-policy-navigation.js"></script>
|
||||
<script>
|
||||
(async () => {
|
||||
await test_frame(
|
|
@ -1,2 +1 @@
|
|||
Accept-CH: Sec-CH-Device-Memory, Device-Memory, Sec-CH-DPR, DPR, Sec-CH-Viewport-Width, Viewport-Width
|
||||
Feature-Policy: ch-device-memory *; ch-dpr 'none'; ch-viewport-width 'self'; ch-ua 'self'; ch-ua-mobile 'none'; ch-prefers-color-scheme 'none'
|
|
@ -3,7 +3,7 @@
|
|||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/common/get-host-info.sub.js"></script>
|
||||
<script src="resources/feature-policy-navigation.js"></script>
|
||||
<script src="/client-hints/resources/feature-policy-navigation.js"></script>
|
||||
<script>
|
||||
(async () => {
|
||||
await test_frame(
|
|
@ -0,0 +1 @@
|
|||
Feature-Policy: ch-device-memory *; ch-dpr 'none'; ch-viewport-width 'self'; ch-mobile; ch-prefers-color-scheme 'none'; ch-viewport-height 'none'
|
|
@ -1,2 +1 @@
|
|||
Accept-CH: sec-ch-device-memory, device-memory, sec-ch-dpr, dpr, sec-ch-viewport-width, viewport-width, rtt, downlink, ect
|
||||
Content-Security-Policy: sandbox allow-scripts allow-same-origin
|
|
@ -1,2 +1 @@
|
|||
Accept-CH: sec-ch-device-memory, device-memory, sec-ch-dpr, dpr, sec-ch-viewport-width, viewport-width, rtt, downlink, ect
|
||||
Content-Security-Policy: sandbox allow-scripts
|
|
@ -1 +0,0 @@
|
|||
Accept-CH: sec-ch-device-memory, device-memory, sec-ch-dpr, dpr, sec-ch-viewport-width, viewport-width, rtt, downlink, ect
|
|
@ -1 +0,0 @@
|
|||
Accept-CH: sec-ch-device-memory, device-memory, sec-ch-dpr, dpr, sec-ch-viewport-width, viewport-width, rtt, downlink, ect
|
|
@ -1 +0,0 @@
|
|||
Accept-CH: sec-ch-device-memory, device-memory, sec-ch-dpr, dpr, sec-ch-viewport-width, viewport-width, rtt, downlink, ect
|
|
@ -1 +0,0 @@
|
|||
Accept-CH: sec-ch-device-memory, device-memory, sec-ch-dpr, dpr, sec-ch-viewport-width, viewport-width, rtt, downlink, ect
|
|
@ -1 +0,0 @@
|
|||
Accept-CH: sec-ch-device-memory, device-memory, sec-ch-dpr, dpr, sec-ch-viewport-width, viewport-width, rtt, downlink, ect
|
Загрузка…
Ссылка в новой задаче