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

Unified Diff: Source/core/css/parser/CSSTokenizerTest.cpp

Issue 825063004: CSS Parser: Support CDO and CDC tokens (<!--, -->) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@lang
Patch Set: Created 5 years, 11 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 | « Source/core/css/parser/CSSTokenizer.cpp ('k') | Source/core/css/parser/SizesCalcParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSTokenizerTest.cpp
diff --git a/Source/core/css/parser/CSSTokenizerTest.cpp b/Source/core/css/parser/CSSTokenizerTest.cpp
index a9e56950ed3c26408689e5f6ec0530de18ab8f9f..6aa2de96dc809eab8016227ba2b40718b816ebc9 100644
--- a/Source/core/css/parser/CSSTokenizerTest.cpp
+++ b/Source/core/css/parser/CSSTokenizerTest.cpp
@@ -111,6 +111,8 @@ DEFINE_STATIC_LOCAL(CSSParserToken, prefixMatch, (PrefixMatchToken));
DEFINE_STATIC_LOCAL(CSSParserToken, suffixMatch, (SuffixMatchToken));
DEFINE_STATIC_LOCAL(CSSParserToken, substringMatch, (SubstringMatchToken));
DEFINE_STATIC_LOCAL(CSSParserToken, column, (ColumnToken));
+DEFINE_STATIC_LOCAL(CSSParserToken, cdo, (CDOToken));
+DEFINE_STATIC_LOCAL(CSSParserToken, cdc, (CDCToken));
DEFINE_STATIC_LOCAL(CSSParserToken, leftParenthesis, (LeftParenthesisToken));
DEFINE_STATIC_LOCAL(CSSParserToken, rightParenthesis, (RightParenthesisToken));
DEFINE_STATIC_LOCAL(CSSParserToken, leftBracket, (LeftBracketToken));
@@ -152,6 +154,9 @@ TEST(CSSTokenizerTest, MultipleCharacterTokens)
TEST_TOKENS("*=", substringMatch);
TEST_TOKENS("||", column);
TEST_TOKENS("|||", column, delim('|'));
+ TEST_TOKENS("<!--", cdo);
+ TEST_TOKENS("<!---", cdo, delim('-'));
+ TEST_TOKENS("-->", cdc);
}
TEST(CSSTokenizerTest, DelimiterToken)
« no previous file with comments | « Source/core/css/parser/CSSTokenizer.cpp ('k') | Source/core/css/parser/SizesCalcParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698