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

Unified Diff: tests/language/type_vm_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/type_vm_test.dart
diff --git a/tests/language/type_vm_test.dart b/tests/language/type_vm_test.dart
index 1b82769b21b522ed034095413ab8d080624276f3..7b525a13a66c9646befa1d6e90254e1eb0526f29 100644
--- a/tests/language/type_vm_test.dart
+++ b/tests/language/type_vm_test.dart
@@ -34,7 +34,7 @@ class TypeTest {
return 0;
}
try {
- List<int> a = new List<int>.fixedLength(1);
+ List<int> a = new List<int>(1);
a[0] = 0;
a[index()]++; // Type check succeeds, but does not create side effects.
Expect.equals(1, a[0]);
@@ -377,7 +377,7 @@ class TypeTest {
static int testListAssigment() {
int result = 0;
{
- var a = new List.fixedLength(5);
+ var a = new List(5);
List a0 = a;
List<Object> ao = a;
List<int> ai = a;
@@ -385,7 +385,7 @@ class TypeTest {
List<String> as = a;
}
{
- var a = new List<Object>.fixedLength(5);
+ var a = new List<Object>(5);
List a0 = a;
List<Object> ao = a;
try {
@@ -438,7 +438,7 @@ class TypeTest {
}
}
{
- var a = new List<int>.fixedLength(5);
+ var a = new List<int>(5);
List a0 = a;
List<Object> ao = a;
List<int> ai = a;
@@ -461,7 +461,7 @@ class TypeTest {
}
}
{
- var a = new List<num>.fixedLength(5);
+ var a = new List<num>(5);
List a0 = a;
List<Object> ao = a;
try {
@@ -499,7 +499,7 @@ class TypeTest {
}
}
{
- var a = new List<String>.fixedLength(5);
+ var a = new List<String>(5);
List a0 = a;
List<Object> ao = a;
try {

Powered by Google App Engine
This is Rietveld 408576698