OLD | NEW |
---|---|
1 <script src="../../../resources/testharness.js"></script> | 1 <script src="../../../resources/testharness.js"></script> |
2 <script src="../../../resources/testharnessreport.js"></script> | 2 <script src="../../../resources/testharnessreport.js"></script> |
3 <div id="target"> | 3 <div id="target"> |
4 <script> | 4 <script> |
5 var testCases = [ | 5 var testCases = [ |
6 ['-webkit-box-reflect', 'below 0px url(\"chrome:\") 0 fill / auto / 0px stretc h'], | 6 ['-webkit-box-reflect', 'below 0px url(\"chrome:\") 0 fill / auto / 0px stretc h', 'below 0px url(\"chrome:\") 0 fill / auto / 0px stretch'], |
7 ['-webkit-mask-box-image-source', 'url("chrome:")'], | 7 ['-webkit-mask-box-image-source', 'url("chrome:")', 'url("chrome:")'], |
8 ['-webkit-mask-image', 'url("chrome:")'], | 8 ['-webkit-mask-image', 'url("chrome:")', 'url("chrome:")'], |
9 ['background-image', 'url("chrome:")'], | 9 ['background-image', 'url("chrome:")', 'url("chrome:")'], |
10 ['border-image-source', 'url("chrome:")'], | 10 ['border-image-source', 'url("chrome:")', 'url("chrome:")'], |
11 ['content', 'url("chrome:")'], | 11 ['content', 'url("chrome:")', 'normal'], |
alancutter (OOO until 2018)
2016/03/23 03:12:30
Revert changes and just remove this test case sinc
nainar
2016/03/23 03:19:19
Done.
| |
12 ['list-style-image', 'url("chrome:")'], | 12 ['list-style-image', 'url("chrome:")', 'url("chrome:")'], |
13 ['shape-outside', 'url("chrome:")'], | 13 ['shape-outside', 'url("chrome:")', 'url("chrome:")'], |
14 ]; | 14 ]; |
15 | 15 |
16 test(() => { | 16 test(() => { |
17 for ([property, value] of testCases) { | 17 for ([property, value] of testCases) { |
18 target.style[property] = value; | 18 target.style[property] = value; |
19 } | 19 } |
20 var computedStyle = getComputedStyle(target); | 20 var computedStyle = getComputedStyle(target); |
21 for ([property, value] of testCases) { | 21 for ([property, value, expected] of testCases) { |
22 assert_equals(computedStyle[property], value, property); | 22 assert_equals(computedStyle[property], expected, property); |
23 } | 23 } |
24 }, 'Disallowed URL protocols should serialise as their original URL strings'); | 24 }, 'Disallowed URL protocols should serialise as their original URL strings'); |
25 </script> | 25 </script> |
OLD | NEW |