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

Side by Side Diff: LayoutTests/fast/dom/HTMLLinkElement/link-crossOrigin.html

Issue 135723008: Add CORS support for <link> elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add setCrossOriginAccessControl() helper to avoid repetition matching CORS attribute value Created 6 years, 10 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/HTMLLinkElement/link-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
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <script>
4 description("This tests the handling of the link.crossOrigin attribute");
5 var link = document.createElement("link");
6 shouldBeTrue("'crossOrigin' in link");
7 shouldBeEqualToString("link.crossOrigin", "");
8 shouldBeEqualToString("link.setAttribute('crossorigin', ''); link.crossOrigin", "anonymous");
9 shouldBeEqualToString("link.removeAttribute('crossorigin'); link.crossOrigin", " ");
10 shouldBeEqualToString("link.setAttribute('crossorigin', 'foo'); link.crossOrigin ", "anonymous");
11 shouldBeEqualToString("link.setAttribute('crossorigin', 'ANONYMOUS'); link.cross Origin", "anonymous");
12 shouldBeEqualToString("link.setAttribute('crossorigin', 'use-credentials'); link .crossOrigin", "use-credentials");
13 shouldBeEqualToString("link.crossOrigin = ''; link.getAttribute('crossorigin')", "");
14 shouldBeEqualToString("link.crossOrigin = 'foo'; link.getAttribute('crossorigin' )", "foo");
15 shouldBeEqualToString("link.crossOrigin = null; link.getAttribute('crossorigin') ", "null");
16 shouldBeEqualToString("link.crossOrigin = 'ANONYMOUS'; link.getAttribute('crosso rigin')", "ANONYMOUS");
17 shouldBeEqualToString("link.crossOrigin = 'use-credentials'; link.getAttribute(' crossorigin')", "use-credentials");
18 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLLinkElement/link-crossOrigin-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698