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

Unified Diff: tests/corelib/for_in_test.dart

Issue 11312122: Change List constructors. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload. Adapt code for List.fixedLength. Created 8 years 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_test.dart ('k') | tests/corelib/indexed_list_access_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/for_in_test.dart
diff --git a/tests/corelib/for_in_test.dart b/tests/corelib/for_in_test.dart
index ea537273bc0bec5d191b98c1944d17e401595878..de51cc159baea2015ae30e786b8a7e18920add2e 100644
--- a/tests/corelib/for_in_test.dart
+++ b/tests/corelib/for_in_test.dart
@@ -79,7 +79,7 @@ class ForInTest {
static void testClosure() {
Set<int> set = getSmallSet();
- List<Function> closures = new List(set.length);
+ List<Function> closures = new List.fixedLength(set.length);
int index = 0;
for (var i in set) {
closures[index++] = () => i;
« no previous file with comments | « tests/corelib/collection_test.dart ('k') | tests/corelib/indexed_list_access_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698