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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLImageElement/image-crossOrigin-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <script> 3 <script>
4 description("This tests the handling of the img.crossOrigin attribute"); 4 description("This tests the handling of the img.crossOrigin attribute");
5 var img = document.createElement("img"); 5 var img = document.createElement("img");
6 shouldBeTrue("'crossOrigin' in img"); 6 shouldBeTrue("'crossOrigin' in img");
7 shouldBeEqualToString("img.crossOrigin", ""); 7 shouldBeNull("img.crossOrigin");
8 shouldBeEqualToString("img.setAttribute('crossorigin', ''); img.crossOrigin", "a nonymous"); 8 shouldBeEqualToString("img.setAttribute('crossorigin', ''); img.crossOrigin", "a nonymous");
9 shouldBeEqualToString("img.removeAttribute('crossorigin'); img.crossOrigin", "") ; 9 shouldBeNull("img.removeAttribute('crossorigin'); img.crossOrigin");
10 shouldBeEqualToString("img.setAttribute('crossorigin', 'foo'); img.crossOrigin", "anonymous"); 10 shouldBeEqualToString("img.setAttribute('crossorigin', 'foo'); img.crossOrigin", "anonymous");
11 shouldBeEqualToString("img.setAttribute('crossorigin', 'ANONYMOUS'); img.crossOr igin", "anonymous"); 11 shouldBeEqualToString("img.setAttribute('crossorigin', 'ANONYMOUS'); img.crossOr igin", "anonymous");
12 shouldBeEqualToString("img.setAttribute('crossorigin', 'use-credentials'); img.c rossOrigin", "use-credentials"); 12 shouldBeEqualToString("img.setAttribute('crossorigin', 'use-credentials'); img.c rossOrigin", "use-credentials");
13 shouldBeEqualToString("img.crossOrigin = ''; img.getAttribute('crossorigin')", " "); 13 shouldBeEqualToString("img.crossOrigin = ''; img.getAttribute('crossorigin')", " ");
14 shouldBeEqualToString("img.crossOrigin = 'foo'; img.getAttribute('crossorigin')" , "foo"); 14 shouldBeEqualToString("img.crossOrigin = 'foo'; img.getAttribute('crossorigin')" , "foo");
15 shouldBeEqualToString("img.crossOrigin = null; img.getAttribute('crossorigin')", "null"); 15 shouldBeFalse("img.crossOrigin = null; img.hasAttribute('crossorigin')");
16 shouldBeEqualToString("img.crossOrigin = 'ANONYMOUS'; img.getAttribute('crossori gin')", "ANONYMOUS"); 16 shouldBeEqualToString("img.crossOrigin = 'ANONYMOUS'; img.getAttribute('crossori gin')", "ANONYMOUS");
17 shouldBeEqualToString("img.crossOrigin = 'use-credentials'; img.getAttribute('cr ossorigin')", "use-credentials"); 17 shouldBeEqualToString("img.crossOrigin = 'use-credentials'; img.getAttribute('cr ossorigin')", "use-credentials");
18 </script> 18 </script>
OLDNEW
« 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