Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: third_party/WebKit/LayoutTests/fast/css/script-tests/image-set-parsing.js

Issue 1363233003: Make sure <url>s are being serialized according to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix interpolation tests Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..b3047bba44dac1ad84219f5ce50c5f7faa32757c 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;

Powered by Google App Engine
This is Rietveld 408576698