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

Unified Diff: LayoutTests/fast/css/script-tests/image-set-setting.js

Issue 1355263002: Make sure <url>s are being serialized according to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@urlThing161644
Patch Set: 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
« no previous file with comments | « LayoutTests/fast/css/script-tests/image-set-parsing.js ('k') | LayoutTests/fast/css/uri-token-parsing.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/script-tests/image-set-setting.js
diff --git a/LayoutTests/fast/css/script-tests/image-set-setting.js b/LayoutTests/fast/css/script-tests/image-set-setting.js
index 1488e25648559cc080e301dbd93909b16141463a..83b5ade5074c626fb4b95a9786d23e155cf2e754 100644
--- a/LayoutTests/fast/css/script-tests/image-set-setting.js
+++ b/LayoutTests/fast/css/script-tests/image-set-setting.js
@@ -16,28 +16,34 @@ function testImageSetRule(description, property, rule, expected)
debug(description + " : " + rule);
var fullRule = "-webkit-image-set(" + rule + ")";
- shouldBeEqualToString('testComputedStyle("' + property + '", "' + fullRule + '")', fullRule);
+ var fullExpected = "-webkit-image-set(" + expected + ")";
+ shouldBeEqualToString('testComputedStyle("' + property + '", "' + fullRule + '")', fullExpected);
}
testImageSetRule("Single value for background-image",
"background-image",
- "url(http://www.webkit.org/a) 1x");
+ "url(http://www.webkit.org/a) 1x",
+ "url(\"http://www.webkit.org/a\") 1x");
testImageSetRule("Multiple values for background-image",
"background-image",
- "url(http://www.webkit.org/a) 1x, url(http://www.webkit.org/b) 2x");
+ "url(http://www.webkit.org/a) 1x, url(http://www.webkit.org/b) 2x",
+ "url(\"http://www.webkit.org/a\") 1x, url(\"http://www.webkit.org/b\") 2x");
testImageSetRule("Multiple values for background-image, out of order",
"background-image",
- "url(http://www.webkit.org/c) 3x, url(http://www.webkit.org/b) 2x, url(http://www.webkit.org/a) 1x");
+ "url(http://www.webkit.org/c) 3x, url(http://www.webkit.org/b) 2x, url(http://www.webkit.org/a) 1x",
+ "url(\"http://www.webkit.org/c\") 3x, url(\"http://www.webkit.org/b\") 2x, url(\"http://www.webkit.org/a\") 1x");
testImageSetRule("Duplicate values for background-image",
"background-image",
- "url(http://www.webkit.org/c) 1x, url(http://www.webkit.org/b) 2x, url(http://www.webkit.org/a) 1x");
+ "url(http://www.webkit.org/c) 1x, url(http://www.webkit.org/b) 2x, url(http://www.webkit.org/a) 1x",
+ "url(\"http://www.webkit.org/c\") 1x, url(\"http://www.webkit.org/b\") 2x, url(\"http://www.webkit.org/a\") 1x");
testImageSetRule("Fractional values for background-image",
"background-image",
- "url(http://www.webkit.org/c) 0.2x, url(http://www.webkit.org/b) 2.3x, url(http://www.webkit.org/a) 12.3456x");
+ "url(http://www.webkit.org/c) 0.2x, url(http://www.webkit.org/b) 2.3x, url(http://www.webkit.org/a) 12.3456x",
+ "url(\"http://www.webkit.org/c\") 0.2x, url(\"http://www.webkit.org/b\") 2.3x, url(\"http://www.webkit.org/a\") 12.3456x");
// FIXME: We should also be testing the behavior of negative values somewhere, but it's currently
// broken. http://wkb.ug/100132
« no previous file with comments | « LayoutTests/fast/css/script-tests/image-set-parsing.js ('k') | LayoutTests/fast/css/uri-token-parsing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698