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

Unified Diff: tests/language/local_function_test.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/language/list_test.dart ('k') | tests/language/many_calls_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/local_function_test.dart
diff --git a/tests/language/local_function_test.dart b/tests/language/local_function_test.dart
index 104319ff68bac760f6c2d6ea55562c35a816ed5a..82f5fc2fbc7c6f93605fb659018d1dcf9c4582a3 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(n);
- var b = new List(n);
+ var a = new List.fixedLength(n);
+ var b = new List.fixedLength(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(n);
- var b = new List(n);
+ var a = new List.fixedLength(n);
+ var b = new List.fixedLength(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(n*n);
+ var a = new List.fixedLength(n*n);
f0() {
for (int i = 0; i < n; i++) {
int vi = i;
« no previous file with comments | « tests/language/list_test.dart ('k') | tests/language/many_calls_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698