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

Unified Diff: tests/corelib/iterable_fold_test.dart

Issue 1064053007: Revert "Change ListIterator to only check for concurrent modification at each iteration" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | « sdk/lib/internal/iterable.dart ('k') | tests/corelib/iterable_reduce_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/iterable_fold_test.dart
diff --git a/tests/corelib/iterable_fold_test.dart b/tests/corelib/iterable_fold_test.dart
index c9b34eed3753676a5a6f45c413a2b7ea32df8f7d..f1875238f79935d8a37b41c3ee3fe6bb61fbd8be 100644
--- a/tests/corelib/iterable_fold_test.dart
+++ b/tests/corelib/iterable_fold_test.dart
@@ -123,8 +123,7 @@ main() {
}, (e) => e is ConcurrentModificationError);
}
- void add4(collection) { if (collection.length < 10) collection.add(4); }
- void addList4(collection) { if (collection.length < 10) collection.add([4]); }
+ void add4(collection) { collection.add(4); }
void put4(map) { map[4] = 4; }
testModification([1, 2, 3], add4, id);
@@ -135,7 +134,7 @@ main() {
testModification([0, 1, 2, 3], add4, (x) => x.where((x) => x > 0));
testModification([0, 1, 2], add4, (x) => x.map((x) => x + 1));
- testModification([[1, 2], [3]], addList4, (x) => x.expand((x) => x));
+ testModification([[1, 2], [3]], add4, (x) => x.expand((x) => x));
testModification([3, 2, 1], add4, (x) => x.reversed);
testModification({1: 1, 2: 2, 3: 3}, put4, (x) => x.keys);
testModification({1: 1, 2: 2, 3: 3}, put4, (x) => x.values);
« no previous file with comments | « sdk/lib/internal/iterable.dart ('k') | tests/corelib/iterable_reduce_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698