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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ce2412925076c19fdd1f977b74f8715d374c93fe |
--- /dev/null |
+++ b/LayoutTests/fast/dom/HTMLLinkElement/link-crossOrigin.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/js-test.js"></script> |
+<script> |
+description("This tests the handling of the link.crossOrigin attribute"); |
+var link = document.createElement("link"); |
+shouldBeTrue("'crossOrigin' in link"); |
+shouldBeEqualToString("link.crossOrigin", ""); |
+shouldBeEqualToString("link.setAttribute('crossorigin', ''); link.crossOrigin", "anonymous"); |
+shouldBeEqualToString("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"); |
+shouldBeEqualToString("link.crossOrigin = 'ANONYMOUS'; link.getAttribute('crossorigin')", "ANONYMOUS"); |
+shouldBeEqualToString("link.crossOrigin = 'use-credentials'; link.getAttribute('crossorigin')", "use-credentials"); |
+</script> |