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

Unified Diff: runtime/vm/scanner_test.cc

Issue 10686003: Better breakpoint placement (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 | « runtime/vm/scanner.cc ('k') | tools/ddbg.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/scanner_test.cc
===================================================================
--- runtime/vm/scanner_test.cc (revision 9175)
+++ runtime/vm/scanner_test.cc (working copy)
@@ -417,10 +417,15 @@
Scanner scanner(String::Handle(String::New(source)),
String::Handle(String::New("")));
- intptr_t token_index = scanner.TokenIndexAtLine(3);
- EXPECT_EQ(3, token_index);
- token_index = scanner.TokenIndexAtLine(100);
- EXPECT(token_index < 0);
+ intptr_t first_token_index, last_token_index;
+ scanner.TokenRangeAtLine(3, &first_token_index, &last_token_index);
+ EXPECT_EQ(3, first_token_index);
+ EXPECT_EQ(8, last_token_index);
+ scanner.TokenRangeAtLine(100, &first_token_index, &last_token_index);
+ EXPECT(first_token_index < 0);
+ scanner.TokenRangeAtLine(1, &first_token_index, &last_token_index);
+ EXPECT_EQ(0, first_token_index);
+ EXPECT(last_token_index < 0);
}
« no previous file with comments | « runtime/vm/scanner.cc ('k') | tools/ddbg.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698