| 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..36068b9b8a831e694b44b66e1933a4dc9dfb1c4c 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(\"#");
|
| 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;
|
|
|