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

Unified Diff: tests/compiler/dart2js/scanner_offset_length_test.dart

Issue 10697003: Various token issues fixed in the compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Unit test tests for erroneous results Created 8 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
« no previous file with comments | « tests/compiler/dart2js/begin_end_token_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/scanner_offset_length_test.dart
diff --git a/tests/compiler/dart2js/scanner_offset_length_test.dart b/tests/compiler/dart2js/scanner_offset_length_test.dart
index cf4d919d9cbb2497a6dc89dc5d0e6993f1edbbfb..e2572778bf0da593d09cc55aae048e7a1d259f15 100644
--- a/tests/compiler/dart2js/scanner_offset_length_test.dart
+++ b/tests/compiler/dart2js/scanner_offset_length_test.dart
@@ -10,10 +10,10 @@ Token scan(String text) => new StringScanner(text, true).tokenize();
check(String text) {
Token token = scan(text);
while (token.kind != EOF_TOKEN) {
- Expect.equals(token.slowToString().length, token.slowCharLength);
+ Expect.equals(token.slowToString().length, token.slowCharCount);
var start = token.charOffset;
- var end = token.charOffset+token.slowCharLength;
+ var end = token.charOffset + token.slowCharCount;
Expect.isTrue(start < text.length,
'start=$start < text.length=${text.length}: $text');
« no previous file with comments | « tests/compiler/dart2js/begin_end_token_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698