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

Unified Diff: LayoutTests/fast/dom/HTMLLinkElement/link-crossOrigin.html

Issue 529933002: Make 'crossOrigin' IDL attributes nullable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 6 years, 3 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/fast/dom/HTMLLinkElement/link-crossOrigin.html
diff --git a/LayoutTests/fast/dom/HTMLLinkElement/link-crossOrigin.html b/LayoutTests/fast/dom/HTMLLinkElement/link-crossOrigin.html
index ce2412925076c19fdd1f977b74f8715d374c93fe..d78cbe7be3a8778c9b4a1f083948b6b78121a6ca 100644
--- a/LayoutTests/fast/dom/HTMLLinkElement/link-crossOrigin.html
+++ b/LayoutTests/fast/dom/HTMLLinkElement/link-crossOrigin.html
@@ -4,15 +4,15 @@
description("This tests the handling of the link.crossOrigin attribute");
var link = document.createElement("link");
shouldBeTrue("'crossOrigin' in link");
-shouldBeEqualToString("link.crossOrigin", "");
+shouldBeNull("link.crossOrigin");
shouldBeEqualToString("link.setAttribute('crossorigin', ''); link.crossOrigin", "anonymous");
-shouldBeEqualToString("link.removeAttribute('crossorigin'); link.crossOrigin", "");
+shouldBeNull("link.removeAttribute('crossorigin'); link.crossOrigin");
shouldBeEqualToString("link.setAttribute('crossorigin', 'foo'); link.crossOrigin", "anonymous");
shouldBeEqualToString("link.setAttribute('crossorigin', 'ANONYMOUS'); link.crossOrigin", "anonymous");
shouldBeEqualToString("link.setAttribute('crossorigin', 'use-credentials'); link.crossOrigin", "use-credentials");
shouldBeEqualToString("link.crossOrigin = ''; link.getAttribute('crossorigin')", "");
shouldBeEqualToString("link.crossOrigin = 'foo'; link.getAttribute('crossorigin')", "foo");
-shouldBeEqualToString("link.crossOrigin = null; link.getAttribute('crossorigin')", "null");
+shouldBeFalse("link.crossOrigin = null; link.hasAttribute('crossorigin')");
shouldBeEqualToString("link.crossOrigin = 'ANONYMOUS'; link.getAttribute('crossorigin')", "ANONYMOUS");
shouldBeEqualToString("link.crossOrigin = 'use-credentials'; link.getAttribute('crossorigin')", "use-credentials");
</script>

Powered by Google App Engine
This is Rietveld 408576698