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

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

Issue 1291613010: Implement referrerpolicy attribute for img elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: actually fix webexposed test this time 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
Index: LayoutTests/http/tests/security/referrer-policy-attribute-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-no-policy.html
similarity index 63%
rename from LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-policy.html
rename to LayoutTests/http/tests/security/referrer-policy-attribute-no-policy.html
index 0697d25d2b4c606d734ba547a0e489f52d4e6eae..0f916d0102da72d72626776a638030701a7a9522 100644
--- a/LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-policy.html
+++ b/LayoutTests/http/tests/security/referrer-policy-attribute-no-policy.html
@@ -9,9 +9,15 @@
var anch = document.createElement("a");
anch.href = "http://localhost:8000/security/resources/referrer-attr-anchor-target.html#no-policy";
document.body.appendChild(anch);
+
+ var img = document.createElement("img");
+ img.src = "http://localhost:8000/security/resources/compass.jpg";
+ document.body.appendChild(img);
+
test(function () {
assert_equals(anch.referrerpolicy, "");
- }, "Dynamically created anchor has empty referrerpolicy");
+ assert_equals(img.referrerpolicy, "");
+ }, "Dynamically created elements have empty referrerpolicy");
anch.click();
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698