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

Unified Diff: pkg/polymer_expressions/test/tokenizer_test.dart

Issue 141703024: Refactor of PolymerExpressions. Adds "as" expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reviewable state. More readable tests. Created 6 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
Index: pkg/polymer_expressions/test/tokenizer_test.dart
diff --git a/pkg/polymer_expressions/test/tokenizer_test.dart b/pkg/polymer_expressions/test/tokenizer_test.dart
index a93dce73ba615fdc61edaaad20d7c7e761bf5da8..05cfffec2f86fd4569c4e455f201fc3c438b6f9b 100644
--- a/pkg/polymer_expressions/test/tokenizer_test.dart
+++ b/pkg/polymer_expressions/test/tokenizer_test.dart
@@ -74,6 +74,13 @@ main() {
t(IDENTIFIER_TOKEN, 'items')]);
});
+ test('should takenize an "as" expression', () {
+ expectTokens('a as b', [
+ t(IDENTIFIER_TOKEN, 'a'),
+ t(KEYWORD_TOKEN, 'as'),
+ t(IDENTIFIER_TOKEN, 'b')]);
+ });
+
test('should tokenize keywords', () {
expectTokens('in', [t(KEYWORD_TOKEN, 'in')]);
expectTokens('this', [t(KEYWORD_TOKEN, 'this')]);

Powered by Google App Engine
This is Rietveld 408576698