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

Unified Diff: tests/corelib/sort_helper.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/sort_helper.dart
diff --git a/tests/corelib/sort_helper.dart b/tests/corelib/sort_helper.dart
index 85d0bee56416af975cc32bbe105981a62f1888cd..e37809746b670686e4031aa7f16ac078471d8748 100644
--- a/tests/corelib/sort_helper.dart
+++ b/tests/corelib/sort_helper.dart
@@ -23,7 +23,7 @@ class SortHelper {
}
void testSortIntLists() {
- List a = new List.fixedLength(40);
+ List a = new List(40);
for (int i = 0; i < a.length; i++) {
a[i] = i;
@@ -79,10 +79,10 @@ class SortHelper {
a[33] = 1;
testSort(a);
- var a2 = new List.fixedLength(0);
+ var a2 = new List(0);
testSort(a2);
- var a3 = new List.fixedLength(1);
+ var a3 = new List(1);
a3[0] = 1;
testSort(a3);
@@ -120,7 +120,7 @@ class SortHelper {
}
void testInsertionSort(int i1, int i2, int i3, int i4) {
- var a = new List.fixedLength(4);
+ var a = new List(4);
a[0] = i1;
a[1] = i2;
a[2] = i3;
@@ -129,7 +129,7 @@ class SortHelper {
}
void testSortDoubleLists() {
- List a = new List.fixedLength(40);
+ List a = new List(40);
for (int i = 0; i < a.length; i++) {
a[i] = 1.0 * i + 0.5;
}

Powered by Google App Engine
This is Rietveld 408576698