Chromium Code Reviews| 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'], |
| 7 ['-webkit-mask-box-image-source', 'url("chrome:")'], | 7 ['-webkit-mask-box-image-source', 'url("chrome:")'], |
| 8 ['-webkit-mask-image', 'url("chrome:")'], | 8 ['-webkit-mask-image', 'url("chrome:")'], |
| 9 ['background-image', 'url("chrome:")'], | 9 ['background-image', 'url("chrome:")'], |
| 10 ['border-image-source', 'url("chrome:")'], | 10 ['border-image-source', 'url("chrome:")'], |
| 11 ['content', 'url("chrome:")'], | |
|
Timothy Loh
2016/03/23 05:07:49
Why delete this test case? It'd be better to updat
alancutter (OOO until 2018)
2016/03/23 05:30:30
I wrote this test and consider this reasonable to
nainar
2016/03/23 06:50:41
Retaining changes as per above.
| |
| 12 ['list-style-image', 'url("chrome:")'], | 11 ['list-style-image', 'url("chrome:")'], |
| 13 ['shape-outside', 'url("chrome:")'], | 12 ['shape-outside', 'url("chrome:")'], |
| 14 ]; | 13 ]; |
| 15 | 14 |
| 16 test(() => { | 15 test(() => { |
| 17 for ([property, value] of testCases) { | 16 for ([property, value] of testCases) { |
| 18 target.style[property] = value; | 17 target.style[property] = value; |
| 19 } | 18 } |
| 20 var computedStyle = getComputedStyle(target); | 19 var computedStyle = getComputedStyle(target); |
| 21 for ([property, value] of testCases) { | 20 for ([property, value] of testCases) { |
| 22 assert_equals(computedStyle[property], value, property); | 21 assert_equals(computedStyle[property], value, property); |
| 23 } | 22 } |
| 24 }, 'Disallowed URL protocols should serialise as their original URL strings'); | 23 }, 'Disallowed URL protocols should serialise as their original URL strings'); |
| 25 </script> | 24 </script> |
| OLD | NEW |