Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/css/getComputedStyle/disallowed-url-serialization.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/disallowed-url-serialization.html b/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/disallowed-url-serialization.html |
| index 7e7fb41350fceda91ce54b47acf6f25369dc2e96..db7ef52d44e1d3a8cdadbe922c83c58bc4ae2a09 100644 |
| --- a/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/disallowed-url-serialization.html |
| +++ b/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/disallowed-url-serialization.html |
| @@ -3,14 +3,14 @@ |
| <div id="target"> |
| <script> |
| var testCases = [ |
| - ['-webkit-box-reflect', 'below 0px url(\"chrome:\") 0 fill / auto / 0px stretch'], |
| - ['-webkit-mask-box-image-source', 'url("chrome:")'], |
| - ['-webkit-mask-image', 'url("chrome:")'], |
| - ['background-image', 'url("chrome:")'], |
| - ['border-image-source', 'url("chrome:")'], |
| - ['content', 'url("chrome:")'], |
| - ['list-style-image', 'url("chrome:")'], |
| - ['shape-outside', 'url("chrome:")'], |
| + ['-webkit-box-reflect', 'below 0px url(\"chrome:\") 0 fill / auto / 0px stretch', 'below 0px url(\"chrome:\") 0 fill / auto / 0px stretch'], |
| + ['-webkit-mask-box-image-source', 'url("chrome:")', 'url("chrome:")'], |
| + ['-webkit-mask-image', 'url("chrome:")', 'url("chrome:")'], |
| + ['background-image', 'url("chrome:")', 'url("chrome:")'], |
| + ['border-image-source', 'url("chrome:")', 'url("chrome:")'], |
| + ['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.
|
| + ['list-style-image', 'url("chrome:")', 'url("chrome:")'], |
| + ['shape-outside', 'url("chrome:")', 'url("chrome:")'], |
| ]; |
| test(() => { |
| @@ -18,8 +18,8 @@ test(() => { |
| target.style[property] = value; |
| } |
| var computedStyle = getComputedStyle(target); |
| - for ([property, value] of testCases) { |
| - assert_equals(computedStyle[property], value, property); |
| + for ([property, value, expected] of testCases) { |
| + assert_equals(computedStyle[property], expected, property); |
| } |
| }, 'Disallowed URL protocols should serialise as their original URL strings'); |
| </script> |