diff options
Diffstat (limited to 'testing/web-platform/tests/cookies/meta-blocked.html')
-rw-r--r-- | testing/web-platform/tests/cookies/meta-blocked.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/web-platform/tests/cookies/meta-blocked.html b/testing/web-platform/tests/cookies/meta-blocked.html new file mode 100644 index 0000000000..1b86e65c87 --- /dev/null +++ b/testing/web-platform/tests/cookies/meta-blocked.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<head> + <meta http-equiv="set-cookie" content="meta-set-cookie=1"> + <script src="/resources/testharness.js"></script> + <script src="/resources/testharnessreport.js"></script> +</head> +<body> + <script> + test(t => { + assert_equals(document.cookie.indexOf('meta-set-cookie'), -1); + }, "Cookie is not set from `<meta>`."); + </script> +</body> |