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

Unified Diff: tests/corelib_2/growable_list_test.dart

Issue 3009623002: fix list_test for strong mode, and fix DDC List constructors (Closed)
Patch Set: update status, one additional fix Created 3 years, 4 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: tests/corelib_2/growable_list_test.dart
diff --git a/tests/corelib_2/growable_list_test.dart b/tests/corelib_2/growable_list_test.dart
index 355d9cc60ef530dd35c6268b3325a1701fb15d10..79d53150d4ef8bded13c982ac25224df3a0197e7 100644
--- a/tests/corelib_2/growable_list_test.dart
+++ b/tests/corelib_2/growable_list_test.dart
@@ -165,20 +165,4 @@ void testConcurrentModification() {
l.addAll(ci);
Expect.listEquals(new List.generate(500, (x) => x), l, "cm6");
}
-
- {
- // Adding to yourself.
- var l = [1];
- Expect.throws(() {
- l.addAll(l);
- }, (e) => e is ConcurrentModificationError, "cm7");
- }
-
- {
- // Adding to yourself.
- var l = [1, 2, 3];
- Expect.throws(() {
- l.addAll(l);
- }, (e) => e is ConcurrentModificationError, "cm8");
- }
}

Powered by Google App Engine
This is Rietveld 408576698