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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParserTest.cpp

Issue 2698083003: support function in custom paint input arguments (Closed)
Patch Set: add comment Created 3 years, 10 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 | « third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/parser/CSSPropertyParserTest.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserTest.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserTest.cpp
index 5c636e95a18962ed8ba890f946ecb8198ac5f329..6bf56faba63ae82a639950422af115caeeeb979a 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserTest.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserTest.cpp
@@ -20,6 +20,14 @@ static int computeNumberOfTracks(const CSSValueList* valueList) {
return numberOfTracks;
}
+TEST(CSSPropertyParserTest, CSSPaint_Functions) {
+ const CSSValue* value = CSSParser::parseSingleValue(
+ CSSPropertyBackgroundImage, "paint(foo, func1(1px, 3px), red)");
+ ASSERT_TRUE(value);
+ ASSERT_TRUE(value->isImageGeneratorValue());
+ EXPECT_EQ(value->cssText(), "paint(foo, func1(1px, 3px), red)");
+}
+
TEST(CSSPropertyParserTest, CSSPaint_NoArguments) {
const CSSValue* value =
CSSParser::parseSingleValue(CSSPropertyBackgroundImage, "paint(foo)");
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698