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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/cursor-parsing-image-set.html

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: CSSPrimitiveValue and CSSSVGDocumentValue customCSSText changes 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/cursor-parsing-image-set.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/cursor-parsing-image-set.html b/third_party/WebKit/LayoutTests/fast/css/cursor-parsing-image-set.html
index c74de4d812a202e2b93f76691bdfe26892e1879e..d9374b50a9921e7d8edf71121b8314ee01d0b712 100644
--- a/third_party/WebKit/LayoutTests/fast/css/cursor-parsing-image-set.html
+++ b/third_party/WebKit/LayoutTests/fast/css/cursor-parsing-image-set.html
@@ -15,10 +15,10 @@ function makeCursorRule(rule)
return "cursor: " + rule + ";";
}
-function testCursorRule(rule)
+function testCursorRule(rule, expected)
{
var cssText = makeCursorRule(rule);
- shouldBeEqualToString('roundtripCssRule("' + cssText + '")', cssText);
+ shouldBeEqualToString('roundtripCssRule("' + cssText + '")', makeCursorRule(expected));
}
function roundtripCssRule(cssText)
@@ -36,10 +36,10 @@ function roundtripCssRule(cssText)
// to avoid triggering any network activity.
debug('Test a bunch of cursor rules which should round-trip exactly.');
-testCursorRule('-webkit-image-set(url(file:///foo.png) 1x), auto');
-testCursorRule('-webkit-image-set(url(file:///foo.png) 1x, url(file:///foo2x.png) 2x), auto');
-testCursorRule('-webkit-image-set(url(file:///foo.png) 1x, url(file:///foo2x.png) 2x) 2 3, auto');
-testCursorRule('-webkit-image-set(url(file:///foo03.png) 0.3x, url(file:///foo5x.png) 5x) 6 5, url(file:///foo.png) 12 3, pointer');
+testCursorRule('-webkit-image-set(url(file:///foo.png) 1x), auto', '-webkit-image-set(url("file:///foo.png") 1x), auto');
+testCursorRule('-webkit-image-set(url(file:///foo.png) 1x, url(file:///foo2x.png) 2x), auto', '-webkit-image-set(url("file:///foo.png") 1x, url("file:///foo2x.png") 2x), auto');
+testCursorRule('-webkit-image-set(url(file:///foo.png) 1x, url(file:///foo2x.png) 2x) 2 3, auto', '-webkit-image-set(url("file:///foo.png") 1x, url("file:///foo2x.png") 2x) 2 3, auto');
+testCursorRule('-webkit-image-set(url(file:///foo03.png) 0.3x, url(file:///foo5x.png) 5x) 6 5, url(file:///foo.png) 12 3, pointer', '-webkit-image-set(url("file:///foo03.png") 0.3x, url("file:///foo5x.png") 5x) 6 5, url("file:///foo.png") 12 3, pointer');
successfullyParsed = true;
</script>

Powered by Google App Engine
This is Rietveld 408576698