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

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

Issue 962093002: CSS Tokenizer: Add an on-stack tokenizer scope (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « Source/core/css/parser/CSSParserImpl.cpp ('k') | Source/core/css/parser/CSSSelectorParserTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSParserValuesTest.cpp
diff --git a/Source/core/css/parser/CSSParserValuesTest.cpp b/Source/core/css/parser/CSSParserValuesTest.cpp
index 76c4d80ae264f772f9336feaa7b95ce6e0f14d6c..07d2a05d59e9fe0dd358707b09693d4dc4c67c86 100644
--- a/Source/core/css/parser/CSSParserValuesTest.cpp
+++ b/Source/core/css/parser/CSSParserValuesTest.cpp
@@ -105,10 +105,8 @@ TEST(CSSParserValuesTest, CSSParserValuelistClear)
TEST(CSSParserValuesTest, CSSParserTokenUrlConversion)
{
- Vector<CSSParserToken> tokens;
- CSSTokenizer::tokenize("url(some) uRL('test') UrL( \"words\" /**/ ) URl( /**/hi/**/ )", tokens);
- CSSParserTokenRange range(tokens);
- CSSParserValueList valueList(range);
+ CSSTokenizer::Scope scope("url(some) uRL('test') UrL( \"words\" /**/ ) URl( /**/hi/**/ )");
+ CSSParserValueList valueList(scope.tokenRange());
ASSERT_EQ(valueList.size(), 4u);
ASSERT_EQ(valueList.valueAt(0)->unit, CSSPrimitiveValue::CSS_URI);
EXPECT_EQ(String(valueList.valueAt(0)->string), "some");
« no previous file with comments | « Source/core/css/parser/CSSParserImpl.cpp ('k') | Source/core/css/parser/CSSSelectorParserTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698