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

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

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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: Source/core/css/parser/CSSTokenizerTest.cpp
diff --git a/Source/core/css/parser/CSSTokenizerTest.cpp b/Source/core/css/parser/CSSTokenizerTest.cpp
index 68791cbf08382f9228c8c663cef51564dacce1a5..5b7b276f958ffd66c75b9f2822572c7e8feee0dc 100644
--- a/Source/core/css/parser/CSSTokenizerTest.cpp
+++ b/Source/core/css/parser/CSSTokenizerTest.cpp
@@ -66,9 +66,9 @@ void testTokens(const String& string, const CSSParserToken& token1, const CSSPar
expectedTokens.append(token3);
}
- CSSParserTokenRange expected(expectedTokens);
+ CSSTokenizerScope actualScope(string);
+ CSSParserTokenRange expected(expectedTokens, &actualScope);
- CSSTokenizer::Scope actualScope(string);
CSSParserTokenRange actual = actualScope.tokenRange();
// Just check that serialization doesn't hit any asserts
@@ -472,7 +472,7 @@ TEST(CSSTokenizerBlockTest, Basic)
{0, 0, 0} // Do not remove the terminator line.
};
for (int i = 0; testCases[i].input; ++i) {
- CSSTokenizer::Scope scope(testCases[i].input);
+ CSSTokenizerScope scope(testCases[i].input);
CSSParserTokenRange range = scope.tokenRange();
MediaQueryBlockWatcher blockWatcher;

Powered by Google App Engine
This is Rietveld 408576698