Chromium Code Reviews| 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..9c25008e0e6603843bda1d7695a459ff52d73ff1 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.href = "http://localhost:8000/security/resources/compass.jpg"; |
|
Yoav Weiss
2015/08/18 21:09:21
img.src? (Although I'm not sure it's relevant for
estark
2015/08/19 02:53:22
Done.
|
| + 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> |