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

Unified Diff: tests/corelib/reg_exp_start_end_test.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « tests/corelib/reg_exp_all_matches_test.dart ('k') | tests/corelib/set_iterator_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/reg_exp_start_end_test.dart
diff --git a/tests/corelib/reg_exp_start_end_test.dart b/tests/corelib/reg_exp_start_end_test.dart
index 80b4634a44d0dc83028ca2ca590a509e29b56d31..18a7337e915c2ff53acdf4d1ba233f152c55031e 100644
--- a/tests/corelib/reg_exp_start_end_test.dart
+++ b/tests/corelib/reg_exp_start_end_test.dart
@@ -5,11 +5,11 @@
main() {
var matches =
new RegExp("(a(b)((c|de)+))").allMatches("abcde abcde abcde");
- var it = matches.iterator();
+ var it = matches.iterator;
int start = 0;
int end = 5;
- while (it.hasNext) {
- Match match = it.next();
+ while (it.moveNext()) {
+ Match match = it.current;
Expect.equals(start, match.start);
Expect.equals(end, match.end);
start += 6;
« no previous file with comments | « tests/corelib/reg_exp_all_matches_test.dart ('k') | tests/corelib/set_iterator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698