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

Unified Diff: runtime/vm/object_test.cc

Issue 23452043: Introduce newline tokens into the token stream. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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: runtime/vm/object_test.cc
diff --git a/runtime/vm/object_test.cc b/runtime/vm/object_test.cc
index 82a5d8d5c0ee029bcd9f6cdca26a02a422f05f20..0df5d3fa844705fd1e025b2dbda5e056868313f0 100644
--- a/runtime/vm/object_test.cc
+++ b/runtime/vm/object_test.cc
@@ -2080,8 +2080,8 @@ TEST_CASE(EmbeddedScript) {
EXPECT_EQ(0, first_idx); // Token 'main' is first token.
EXPECT_EQ(3, last_idx); // Token { is last token.
script.TokenRangeAtLine(5, &first_idx, &last_idx);
- EXPECT_EQ(7, first_idx); // Token } is first and only token.
- EXPECT_EQ(7, last_idx);
+ EXPECT_EQ(8, first_idx); // Token } is first and only token.
hausner 2013/09/18 22:27:47 Why has this token index changed?
Michael Lippautz (Google) 2013/09/18 23:59:31 The source text contains 2 NL, hence 7->9 (previou
+ EXPECT_EQ(8, last_idx);
}
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | runtime/vm/scanner.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698