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

Unified Diff: tests/corelib/list_fixed_test.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. 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
Index: tests/corelib/list_fixed_test.dart
diff --git a/tests/corelib/list_fixed_test.dart b/tests/corelib/list_fixed_test.dart
index b6d74402ec60542630d1026bb6b3bd04aa668da8..c29d8eaf7e53a624a11378a0b7e8fa423a810a77 100644
--- a/tests/corelib/list_fixed_test.dart
+++ b/tests/corelib/list_fixed_test.dart
@@ -5,7 +5,7 @@
main() {
var a;
- a = new List.fixedLength(42);
+ a = new List(42);
Expect.equals(42, a.length);
Expect.throws(() => a.add(499), (e) => e is UnsupportedError);
Expect.equals(42, a.length);
@@ -15,7 +15,7 @@ main() {
Expect.throws(() => a.clear(), (e) => e is UnsupportedError);
Expect.equals(42, a.length);
- a = new List.fixedLength(42, fill: -2);
+ a = new List.filled(42, -2);
Expect.equals(42, a.length);
Expect.throws(() => a.add(499), (e) => e is UnsupportedError);
Expect.equals(42, a.length);

Powered by Google App Engine
This is Rietveld 408576698