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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/referrer-policy/generic/subresource-test/attr-referrer-invalid-value.html

Issue 2697453005: Import wpt@758b3b4cfa805067f36121333ba031e583d3a62c (Closed)
Patch Set: Add -expected.txt files. Created 3 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Invalid referrerPolicy attribute value</title>
5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script>
7 </head>
8 <body>
9 <h1>Invalid referrerPolicy attribute value</h1>
10 <pre>Running...</pre>
11
12 <script>
13 test(function () {
14 var elements = ["iframe", "img", "a", "area", "link"];
15 for (var i = 0; i < elements.length; i++) {
16 var elem = document.createElement(elements[i]);
17 elem.referrerPolicy = "unsafe-url";
18 assert_equals(elem.referrerPolicy, "unsafe-url");
19 elem.referrerPolicy = "not-valid-value";
20 assert_equals(elem.referrerPolicy, "");
21 }
22 }, "Invalid referrerpolicy values not reflected");
23 </script>
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698