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

Unified Diff: tests/corelib/sort_helper.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « tests/corelib/set_test.dart ('k') | tests/corelib/stopwatch_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/sort_helper.dart
diff --git a/tests/corelib/sort_helper.dart b/tests/corelib/sort_helper.dart
index e37809746b670686e4031aa7f16ac078471d8748..85d0bee56416af975cc32bbe105981a62f1888cd 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(40);
+ List a = new List.fixedLength(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(0);
+ var a2 = new List.fixedLength(0);
testSort(a2);
- var a3 = new List(1);
+ var a3 = new List.fixedLength(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(4);
+ var a = new List.fixedLength(4);
a[0] = i1;
a[1] = i2;
a[2] = i3;
@@ -129,7 +129,7 @@ class SortHelper {
}
void testSortDoubleLists() {
- List a = new List(40);
+ List a = new List.fixedLength(40);
for (int i = 0; i < a.length; i++) {
a[i] = 1.0 * i + 0.5;
}
« no previous file with comments | « tests/corelib/set_test.dart ('k') | tests/corelib/stopwatch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698