mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Update web-platform-tests to revision 78f764c05c229883e87ad135c7153051a66e2851
This commit is contained in:
parent
55347aa39f
commit
bf84a079f9
1983 changed files with 58006 additions and 31437 deletions
|
@ -1,5 +1,6 @@
|
|||
<html>
|
||||
<title>Accept-CH-Lifetime test with same-origin iframe</title>
|
||||
<meta name="timeout" content="long">
|
||||
<body>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<html>
|
||||
<title>Accept-CH-Lifetime test with subresource</title>
|
||||
<meta name="timeout" content="long">
|
||||
<body>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
|
|
@ -18,3 +18,5 @@ def main(request, response):
|
|||
response.headers.set("downlink-received", request.headers.get("downlink"))
|
||||
if "ect" in request.headers:
|
||||
response.headers.set("ect-received", request.headers.get("ect"))
|
||||
if "Sec-CH-Lang" in request.headers:
|
||||
response.headers.set("lang-received", request.headers.get("Sec-CH-Lang"))
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<html>
|
||||
<meta http-equiv="Accept-CH" content="DPR, Width, Viewport-Width, Device-Memory, rtt, downlink, ect">
|
||||
<meta http-equiv="Accept-CH" content="DPR, Width, Viewport-Width, Device-Memory, rtt, downlink, ect, lang">
|
||||
<title>Accept-CH http-equiv insecure transport test</title>
|
||||
<body>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
|
@ -27,6 +27,7 @@ promise_test(t => {
|
|||
assert_false(r.headers.has("rtt-received"), "rtt-received");
|
||||
assert_false(r.headers.has("downlink-received"), "downlink-received");
|
||||
assert_false(r.headers.has("ect-received"), "ect-received");
|
||||
assert_false(r.headers.has("lang-received"), "lang-received");
|
||||
});
|
||||
}, "Accept-CH http-equiv test over insecure transport");
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<html>
|
||||
<meta http-equiv="Accept-CH" content="DPR, Width, Viewport-Width, Device-Memory, rtt, downlink, ect">
|
||||
<meta http-equiv="Accept-CH" content="DPR, Width, Viewport-Width, Device-Memory, rtt, downlink, ect, lang">
|
||||
<title>Accept-CH http-equiv cross-navigation test</title>
|
||||
<body>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
|
@ -39,9 +39,9 @@ promise_test(t => {
|
|||
// not persisted for the origin.
|
||||
window.open("resources/do_not_expect_client_hints_headers.html");
|
||||
async_test(t => {
|
||||
window.addEventListener('message', function(event) {
|
||||
t.done();
|
||||
})
|
||||
window.addEventListener('message', t.step_func_done(e => {
|
||||
assert_equals(e.data, 'PASS');
|
||||
}));
|
||||
}, "Loading of resources/do_not_expect_client_hints_headers.html did not finish.");
|
||||
|
||||
</script>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<html>
|
||||
<meta http-equiv="Accept-CH" content="DPR, Width, Viewport-Width, Device-Memory, rtt, downlink, ect">
|
||||
<meta http-equiv="Accept-CH" content="DPR, Width, Viewport-Width, Device-Memory, rtt, downlink, ect, lang">
|
||||
<title>Accept-CH http-equiv same-origin and cross-origin test</title>
|
||||
<body>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
|
@ -38,6 +38,8 @@ promise_test(t => {
|
|||
|
||||
assert_in_array(r.headers.get("ect-received"), ["slow-2g", "2g",
|
||||
"3g", "4g"], 'ect-received is unexpected');
|
||||
|
||||
assert_true(r.headers.has("lang-received"), "lang-received");
|
||||
});
|
||||
}, "Same origin Accept-CH http-equiv test");
|
||||
|
||||
|
@ -52,6 +54,7 @@ promise_test(t => {
|
|||
assert_false(r.headers.has("rtt-received"), "rtt-received");
|
||||
assert_false(r.headers.has("downlink-received"), "downlink-received");
|
||||
assert_false(r.headers.has("ect-received"), "ect-received");
|
||||
assert_false(r.headers.has("lang-received"), "lang-received");
|
||||
});
|
||||
}, "Cross-Origin Accept-CH http-equiv test");
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<html>
|
||||
<title>Accept-CH-Lifetime test with same-origin iframe</title>
|
||||
<meta name="timeout" content="long">
|
||||
<body>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<html>
|
||||
<title>Accept-CH-Lifetime test with subresource</title>
|
||||
<meta name="timeout" content="long">
|
||||
<body>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue