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

Unified Diff: tests/corelib/list_growable_test.dart

Issue 12041019: Remove List.filled constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove List.filled usage in serialization package. 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 | « sdk/lib/core/list.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/list_growable_test.dart
diff --git a/tests/corelib/list_growable_test.dart b/tests/corelib/list_growable_test.dart
index 5066c127fa3133ecaa7627c64b15e005fab4aba4..616b4506259b2666d60567bfe14cc215aa682b35 100644
--- a/tests/corelib/list_growable_test.dart
+++ b/tests/corelib/list_growable_test.dart
@@ -33,28 +33,4 @@ main() {
a.clear();
Expect.equals(0, a.length);
Expect.throws(() => a[0], (e) => e is RangeError);
-
- a = new List.filled(42, -1);
- Expect.equals(42, a.length);
- a.add(499);
- Expect.equals(43, a.length);
- Expect.equals(499, a[42]);
- for (int i = 0; i < 42; i++) {
- Expect.equals(-1, a[i]);
- }
- a.clear();
- Expect.equals(0, a.length);
- Expect.throws(() => a[0], (e) => e is RangeError);
-
- a = new List<int>.filled(42, -1);
- Expect.equals(42, a.length);
- a.add(499);
- Expect.equals(43, a.length);
- Expect.equals(499, a[42]);
- for (int i = 0; i < 42; i++) {
- Expect.equals(-1, a[i]);
- }
- a.clear();
- Expect.equals(0, a.length);
- Expect.throws(() => a[0], (e) => e is RangeError);
}
« no previous file with comments | « sdk/lib/core/list.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698