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

Unified Diff: tests/language/local_function_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/language/local_function_test.dart
diff --git a/tests/language/local_function_test.dart b/tests/language/local_function_test.dart
index 82f5fc2fbc7c6f93605fb659018d1dcf9c4582a3..104319ff68bac760f6c2d6ea55562c35a816ed5a 100644
--- a/tests/language/local_function_test.dart
+++ b/tests/language/local_function_test.dart
@@ -16,8 +16,8 @@ class LocalFunctionTest {
}
static int h(int n) {
k(int n) {
- var a = new List.fixedLength(n);
- var b = new List.fixedLength(n);
+ var a = new List(n);
+ var b = new List(n);
int i;
for (i = 0; i < n; i++) {
var j = i;
@@ -36,8 +36,8 @@ class LocalFunctionTest {
}
static int h2(int n) {
k(int n) {
- var a = new List.fixedLength(n);
- var b = new List.fixedLength(n);
+ var a = new List(n);
+ var b = new List(n);
for (int i = 0; i < n; i++) {
var j = i;
a[i] = () => i; // Captured i varies from 0 to n-1.
@@ -94,7 +94,7 @@ class LocalFunctionTest {
f();
}
static testNesting(int n) {
- var a = new List.fixedLength(n*n);
+ var a = new List(n*n);
f0() {
for (int i = 0; i < n; i++) {
int vi = i;

Powered by Google App Engine
This is Rietveld 408576698