Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-policy.html

Issue 1253413003: Implement referrerpolicy attribute for anchor elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update webexposed layout tests Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-referrer.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-policy.html
diff --git a/LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-policy.html b/LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-policy.html
new file mode 100644
index 0000000000000000000000000000000000000000..0697d25d2b4c606d734ba547a0e489f52d4e6eae
--- /dev/null
+++ b/LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-policy.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+</head>
+<body>
+ <script>
+ var anch = document.createElement("a");
+ anch.href = "http://localhost:8000/security/resources/referrer-attr-anchor-target.html#no-policy";
+ document.body.appendChild(anch);
+ test(function () {
+ assert_equals(anch.referrerpolicy, "");
+ }, "Dynamically created anchor has empty referrerpolicy");
+ anch.click();
+ </script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-referrer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698