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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/cursor-parsing.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: 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/cursor-parsing.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/cursor-parsing.html b/third_party/WebKit/LayoutTests/fast/css/cursor-parsing.html
index c0072e1d9eae0350710453615ace2d94b29d81df..01b67f120d9c01edf3393d972cc55ca4e7ecf24b 100644
--- a/third_party/WebKit/LayoutTests/fast/css/cursor-parsing.html
+++ b/third_party/WebKit/LayoutTests/fast/css/cursor-parsing.html
@@ -11,18 +11,18 @@ description("Test the parsing of the cursor property.");
function makeCursorRule(rule)
{
- return "cursor: " + rule + ";";
+ return 'cursor: ' + rule + ';';
}
function testCursorRule(rule)
{
var cssText = makeCursorRule(rule);
- shouldBeEqualToString('roundtripCssRule("' + cssText + '")', cssText);
+ shouldBeEqualToString('roundtripCssRule(`' + cssText + '`)', cssText);
}
function testInvalidCursorRule(rule)
{
- shouldBeEqualToString('roundtripCssRule("' + makeCursorRule(rule) + '")', '');
+ shouldBeEqualToString('roundtripCssRule(`' + makeCursorRule(rule) + '`)', '');
}
function roundtripCssRule(cssText)
@@ -48,14 +48,14 @@ testCursorRule('zoom-out');
testCursorRule('-webkit-grabbing');
testCursorRule('-webkit-zoom-in');
testCursorRule('-webkit-zoom-out');
-testCursorRule('url(file:///foo.png), crosshair');
-testCursorRule('url(file:///foo.png), url(file:///foo2.png), pointer');
-testCursorRule('url(file:///foo.png) 12 3, pointer');
-testCursorRule('url(file:///foo.png) 0 0, pointer');
-testCursorRule('url(file:///foo.png) 12 3, url(file:///foo2.png), url(file:///foo3.png) 6 7, crosshair');
-testCursorRule('url(file:///foo.png) -2 3, pointer');
-testCursorRule('url(file:///foo.png) 2 -3, pointer');
-testCursorRule('url(file:///foo.png) -1 -1, pointer');
+testCursorRule('url("file:///foo.png"), crosshair');
+testCursorRule('url("file:///foo.png"), url("file:///foo2.png"), pointer');
+testCursorRule('url("file:///foo.png") 12 3, pointer');
+testCursorRule('url("file:///foo.png") 0 0, pointer', 'url("file:///foo.png") 0 0, pointer');
+testCursorRule('url("file:///foo.png") 12 3, url("file:///foo2.png"), url("file:///foo3.png") 6 7, crosshair');
+testCursorRule('url("file:///foo.png") -2 3, pointer');
+testCursorRule('url("file:///foo.png") 2 -3, pointer');
+testCursorRule('url("file:///foo.png") -1 -1, pointer');
debug('');
debug('Test a bunch of invalid cursor rules which shouldn\'t parse at all.');
@@ -63,12 +63,12 @@ testInvalidCursorRule('nonexistent');
testInvalidCursorRule('ltr');
testInvalidCursorRule('inline');
testInvalidCursorRule('hand');
-testInvalidCursorRule('url(file:///foo.png)');
-testInvalidCursorRule('url(file:///foo.png), url(file:///foo2.png)');
-testInvalidCursorRule('url(file:///foo.png) 12');
-testInvalidCursorRule('url(file:///foo.png) 12 3 5');
-testInvalidCursorRule('url(file:///foo.png) x y');
-testInvalidCursorRule('url(file:///foo.png) auto');
+testInvalidCursorRule('url("file:///foo.png")');
+testInvalidCursorRule('url("file:///foo.png"), url("file:///foo2.png")');
+testInvalidCursorRule('url("file:///foo.png") 12');
+testInvalidCursorRule('url("file:///foo.png") 12 3 5');
+testInvalidCursorRule('url("file:///foo.png") x y');
+testInvalidCursorRule('url("file:///foo.png") auto');
successfullyParsed = true;
</script>

Powered by Google App Engine
This is Rietveld 408576698