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

Unified Diff: tests/language/type_vm_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/type_cast_vm_test.dart ('k') | tests/language/typed_message_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/type_vm_test.dart
diff --git a/tests/language/type_vm_test.dart b/tests/language/type_vm_test.dart
index 7b525a13a66c9646befa1d6e90254e1eb0526f29..1b82769b21b522ed034095413ab8d080624276f3 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>(1);
+ List<int> a = new List<int>.fixedLength(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(5);
+ var a = new List.fixedLength(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>(5);
+ var a = new List<Object>.fixedLength(5);
List a0 = a;
List<Object> ao = a;
try {
@@ -438,7 +438,7 @@ class TypeTest {
}
}
{
- var a = new List<int>(5);
+ var a = new List<int>.fixedLength(5);
List a0 = a;
List<Object> ao = a;
List<int> ai = a;
@@ -461,7 +461,7 @@ class TypeTest {
}
}
{
- var a = new List<num>(5);
+ var a = new List<num>.fixedLength(5);
List a0 = a;
List<Object> ao = a;
try {
@@ -499,7 +499,7 @@ class TypeTest {
}
}
{
- var a = new List<String>(5);
+ var a = new List<String>.fixedLength(5);
List a0 = a;
List<Object> ao = a;
try {
« no previous file with comments | « tests/language/type_cast_vm_test.dart ('k') | tests/language/typed_message_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698