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

Unified Diff: tests/corelib/list_growable_test.dart

Issue 12401002: Make List.from and Iterable.toList default to not growable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/collection_removes_test.dart ('k') | tools/dom/src/CssClassSet.dart » ('j') | 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 3c0dab064901c3f98b2f77e13691fd4606c1f7d8..563f187276dcd13ba9a355141bdaa9f711b0679f 100644
--- a/tests/corelib/list_growable_test.dart
+++ b/tests/corelib/list_growable_test.dart
@@ -12,7 +12,7 @@ main() {
Expect.equals(0, a.length);
Expect.throws(() => a[0], (e) => e is RangeError);
- a = new List(42).toList(growable: true);
+ a = new List(42).toList();
Expect.equals(42, a.length);
a.add(499);
Expect.equals(43, a.length);
@@ -22,7 +22,7 @@ main() {
Expect.equals(0, a.length);
Expect.throws(() => a[0], (e) => e is RangeError);
- a = new List<int>(42).toList(growable: true);
+ a = new List<int>(42).toList();
Expect.equals(42, a.length);
a.add(499);
Expect.equals(43, a.length);
« no previous file with comments | « tests/corelib/collection_removes_test.dart ('k') | tools/dom/src/CssClassSet.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698