Index: LayoutTests/fast/dom/HTMLScriptElement/script-crossOrigin.html |
diff --git a/LayoutTests/fast/dom/HTMLScriptElement/script-crossOrigin.html b/LayoutTests/fast/dom/HTMLScriptElement/script-crossOrigin.html |
index daaf085b83d995e1a047e33603ecde00c5925dc7..f841630c117bd8802f628c8eabef7894dff7c332 100644 |
--- a/LayoutTests/fast/dom/HTMLScriptElement/script-crossOrigin.html |
+++ b/LayoutTests/fast/dom/HTMLScriptElement/script-crossOrigin.html |
@@ -4,15 +4,15 @@ |
description("This tests the handling of the script.crossOrigin attribute"); |
var script = document.createElement("script"); |
shouldBeTrue("'crossOrigin' in script"); |
-shouldBeEqualToString("script.crossOrigin", ""); |
+shouldBeNull("script.crossOrigin"); |
shouldBeEqualToString("script.setAttribute('crossorigin', ''); script.crossOrigin", "anonymous"); |
-shouldBeEqualToString("script.removeAttribute('crossorigin'); script.crossOrigin", ""); |
+shouldBeNull("script.removeAttribute('crossorigin'); script.crossOrigin"); |
shouldBeEqualToString("script.setAttribute('crossorigin', 'foo'); script.crossOrigin", "anonymous"); |
shouldBeEqualToString("script.setAttribute('crossorigin', 'ANONYMOUS'); script.crossOrigin", "anonymous"); |
shouldBeEqualToString("script.setAttribute('crossorigin', 'use-credentials'); script.crossOrigin", "use-credentials"); |
shouldBeEqualToString("script.crossOrigin = ''; script.getAttribute('crossorigin')", ""); |
shouldBeEqualToString("script.crossOrigin = 'foo'; script.getAttribute('crossorigin')", "foo"); |
-shouldBeEqualToString("script.crossOrigin = null; script.getAttribute('crossorigin')", "null"); |
+shouldBeFalse("script.crossOrigin = null; script.hasAttribute('crossorigin')"); |
shouldBeEqualToString("script.crossOrigin = 'ANONYMOUS'; script.getAttribute('crossorigin')", "ANONYMOUS"); |
shouldBeEqualToString("script.crossOrigin = 'use-credentials'; script.getAttribute('crossorigin')", "use-credentials"); |
</script> |