mirror of
https://github.com/servo/servo.git
synced 2025-09-07 05:28:21 +01:00
Update web-platform-tests to revision 6c2d23b1b5e4dc00c944eedd16a11850e74a2d11
This commit is contained in:
parent
ad83faa745
commit
0114122fe0
140 changed files with 4328 additions and 1419 deletions
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/cookies/resources/cookie-helper.sub.js"></script>
|
||||
<script>
|
||||
["", "domain="+CROSS_SITE_HOST, "MaxAge=10", "HttpOnly"].forEach(extraParams => {
|
||||
// Without 'secure'
|
||||
set_prefixed_cookie_via_http_test({
|
||||
prefix: "__Secure-",
|
||||
params: "Path=/;" + extraParams,
|
||||
shouldExistViaHTTP: false,
|
||||
title: "__Secure: secure origin: Should not set 'Path=/;" + extraParams + "'"
|
||||
});
|
||||
|
||||
// With 'secure'
|
||||
set_prefixed_cookie_via_http_test({
|
||||
prefix: "__Secure-",
|
||||
params: "Secure;Path=/;" + extraParams,
|
||||
shouldExistViaHTTP: true,
|
||||
title: "__Secure: secure origin: Should set 'Secure;Path=/;" + extraParams + "'"
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue