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> |