OLD | NEW |
1 This tests the handling of the img.crossOrigin attribute | 1 This tests the handling of the img.crossOrigin attribute |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS 'crossOrigin' in img is true | 6 PASS 'crossOrigin' in img is true |
7 PASS img.crossOrigin is "" | 7 PASS img.crossOrigin is null |
8 PASS img.setAttribute('crossorigin', ''); img.crossOrigin is "anonymous" | 8 PASS img.setAttribute('crossorigin', ''); img.crossOrigin is "anonymous" |
9 PASS img.removeAttribute('crossorigin'); img.crossOrigin is "" | 9 PASS img.removeAttribute('crossorigin'); img.crossOrigin is null |
10 PASS img.setAttribute('crossorigin', 'foo'); img.crossOrigin is "anonymous" | 10 PASS img.setAttribute('crossorigin', 'foo'); img.crossOrigin is "anonymous" |
11 PASS img.setAttribute('crossorigin', 'ANONYMOUS'); img.crossOrigin is "anonymous
" | 11 PASS img.setAttribute('crossorigin', 'ANONYMOUS'); img.crossOrigin is "anonymous
" |
12 PASS img.setAttribute('crossorigin', 'use-credentials'); img.crossOrigin is "use
-credentials" | 12 PASS img.setAttribute('crossorigin', 'use-credentials'); img.crossOrigin is "use
-credentials" |
13 PASS img.crossOrigin = ''; img.getAttribute('crossorigin') is "" | 13 PASS img.crossOrigin = ''; img.getAttribute('crossorigin') is "" |
14 PASS img.crossOrigin = 'foo'; img.getAttribute('crossorigin') is "foo" | 14 PASS img.crossOrigin = 'foo'; img.getAttribute('crossorigin') is "foo" |
15 PASS img.crossOrigin = null; img.getAttribute('crossorigin') is "null" | 15 PASS img.crossOrigin = null; img.hasAttribute('crossorigin') is false |
16 PASS img.crossOrigin = 'ANONYMOUS'; img.getAttribute('crossorigin') is "ANONYMOU
S" | 16 PASS img.crossOrigin = 'ANONYMOUS'; img.getAttribute('crossorigin') is "ANONYMOU
S" |
17 PASS img.crossOrigin = 'use-credentials'; img.getAttribute('crossorigin') is "us
e-credentials" | 17 PASS img.crossOrigin = 'use-credentials'; img.getAttribute('crossorigin') is "us
e-credentials" |
18 PASS successfullyParsed is true | 18 PASS successfullyParsed is true |
19 | 19 |
20 TEST COMPLETE | 20 TEST COMPLETE |
21 | 21 |
OLD | NEW |