Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/css/script-tests/image-set-parsing.js |
| diff --git a/third_party/WebKit/LayoutTests/fast/css/script-tests/image-set-parsing.js b/third_party/WebKit/LayoutTests/fast/css/script-tests/image-set-parsing.js |
| index 1a655ab42c6125ccb6297c471c931762f928479c..c6afc8baf85594224026f1a57d628498c68fd0df 100644 |
| --- a/third_party/WebKit/LayoutTests/fast/css/script-tests/image-set-parsing.js |
| +++ b/third_party/WebKit/LayoutTests/fast/css/script-tests/image-set-parsing.js |
| @@ -11,45 +11,45 @@ function testImageSetRule(description, property, rule, expectedTexts) |
| rule = "-webkit-image-set(" + rule + ")"; |
| div.style[property] = rule; |
| document.body.appendChild(div); |
| - result = div.style[property].replace(/url\([^#]*#/g, "url(#"); |
| + result = div.style[property].replace(/url\("[^#]*#/g, "url(\"#"); |
|
Timothy Loh
2015/09/25 14:22:05
single quotes for strings with double quotes in th
nainar
2015/09/28 01:19:18
Done.
|
| shouldBeEqualToString("result", rule); |
| document.body.removeChild(div); |
| } |
| testImageSetRule("Single value for background-image", |
| "background-image", |
| - "url(#a) 1x"); |
| + "url(\"#a\") 1x"); |
| testImageSetRule("Multiple values for background-image", |
| "background-image", |
| - "url(#a) 1x, url(#b) 2x"); |
| + "url(\"#a\") 1x, url(\"#b\") 2x"); |
| testImageSetRule("Multiple values for background-image, out of order", |
| "background-image", |
| - "url(#c) 3x, url(#b) 2x, url(#a) 1x"); |
| + "url(\"#c\") 3x, url(\"#b\") 2x, url(\"#a\") 1x"); |
| testImageSetRule("Single value for content", |
| "content", |
| - "url(#a) 1x"); |
| + "url(\"#a\") 1x"); |
| testImageSetRule("Multiple values for content", |
| "content", |
| - "url(#a) 1x, url(#b) 2x"); |
| + "url(\"#a\") 1x, url(\"#b\") 2x"); |
| testImageSetRule("Single value for border-image", |
| "-webkit-border-image", |
| - "url(#a) 1x"); |
| + "url(\"#a\") 1x"); |
| testImageSetRule("Multiple values for border-image", |
| "-webkit-border-image", |
| - "url(#a) 1x, url(#b) 2x"); |
| + "url(\"#a\") 1x, url(\"#b\") 2x"); |
| testImageSetRule("Single value for -webkit-mask-box-image-source", |
| "-webkit-mask-box-image-source", |
| - "url(#a) 1x"); |
| + "url(\"#a\") 1x"); |
| testImageSetRule("Multiple values for -webkit-mask-box-image-source", |
| "-webkit-mask-box-image-source", |
| - "url(#a) 1x, url(#b) 2x"); |
| + "url(\"#a\") 1x, url(\"#b\") 2x"); |
| successfullyParsed = true; |