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

Unified Diff: LayoutTests/fast/dom/HTMLImageElement/image-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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLImageElement/image-crossOrigin-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLImageElement/image-crossOrigin.html
diff --git a/LayoutTests/fast/dom/HTMLImageElement/image-crossOrigin.html b/LayoutTests/fast/dom/HTMLImageElement/image-crossOrigin.html
index 049848e60342f4b6babf7e0341cc10920181a4f3..0b1564127d915c8a7a85258dfe3f8a9294927827 100644
--- a/LayoutTests/fast/dom/HTMLImageElement/image-crossOrigin.html
+++ b/LayoutTests/fast/dom/HTMLImageElement/image-crossOrigin.html
@@ -4,15 +4,15 @@
description("This tests the handling of the img.crossOrigin attribute");
var img = document.createElement("img");
shouldBeTrue("'crossOrigin' in img");
-shouldBeEqualToString("img.crossOrigin", "");
+shouldBeNull("img.crossOrigin");
shouldBeEqualToString("img.setAttribute('crossorigin', ''); img.crossOrigin", "anonymous");
-shouldBeEqualToString("img.removeAttribute('crossorigin'); img.crossOrigin", "");
+shouldBeNull("img.removeAttribute('crossorigin'); img.crossOrigin");
shouldBeEqualToString("img.setAttribute('crossorigin', 'foo'); img.crossOrigin", "anonymous");
shouldBeEqualToString("img.setAttribute('crossorigin', 'ANONYMOUS'); img.crossOrigin", "anonymous");
shouldBeEqualToString("img.setAttribute('crossorigin', 'use-credentials'); img.crossOrigin", "use-credentials");
shouldBeEqualToString("img.crossOrigin = ''; img.getAttribute('crossorigin')", "");
shouldBeEqualToString("img.crossOrigin = 'foo'; img.getAttribute('crossorigin')", "foo");
-shouldBeEqualToString("img.crossOrigin = null; img.getAttribute('crossorigin')", "null");
+shouldBeFalse("img.crossOrigin = null; img.hasAttribute('crossorigin')");
shouldBeEqualToString("img.crossOrigin = 'ANONYMOUS'; img.getAttribute('crossorigin')", "ANONYMOUS");
shouldBeEqualToString("img.crossOrigin = 'use-credentials'; img.getAttribute('crossorigin')", "use-credentials");
</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLImageElement/image-crossOrigin-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698