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

Unified Diff: tests/language/generic_instanceof.dart

Issue 11312122: Change List constructors. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload. Adapt code for List.fixedLength. Created 8 years 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/gc_test.dart ('k') | tests/language/incr_op_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/generic_instanceof.dart
diff --git a/tests/language/generic_instanceof.dart b/tests/language/generic_instanceof.dart
index 3f64976d6b547f3022e32d9d1f93f028455ca41d..f2225e8fdb93829d0c9df3e9740ac3ad022fcd51 100644
--- a/tests/language/generic_instanceof.dart
+++ b/tests/language/generic_instanceof.dart
@@ -37,7 +37,7 @@ class GenericInstanceof {
}
{
Foo foo = new Foo();
- Expect.equals(true, foo.isT(new List(5)));
+ Expect.equals(true, foo.isT(new List.fixedLength(5)));
Expect.equals(true, foo.isT(new List<Object>(5)));
Expect.equals(true, foo.isT(new List<int>(5)));
Expect.equals(true, foo.isT(new List<num>(5)));
@@ -45,7 +45,7 @@ class GenericInstanceof {
}
{
Foo foo = new Foo<List>();
- Expect.equals(true, foo.isT(new List(5)));
+ Expect.equals(true, foo.isT(new List.fixedLength(5)));
Expect.equals(true, foo.isT(new List<Object>(5)));
Expect.equals(true, foo.isT(new List<int>(5)));
Expect.equals(true, foo.isT(new List<num>(5)));
@@ -53,7 +53,7 @@ class GenericInstanceof {
}
{
Foo foo = new Foo<List<Object>>();
- Expect.equals(true, foo.isT(new List(5)));
+ Expect.equals(true, foo.isT(new List.fixedLength(5)));
Expect.equals(true, foo.isT(new List<Object>(5)));
Expect.equals(true, foo.isT(new List<int>(5)));
Expect.equals(true, foo.isT(new List<num>(5)));
@@ -61,7 +61,7 @@ class GenericInstanceof {
}
{
Foo foo = new Foo<List<int>>();
- Expect.equals(true, foo.isT(new List(5)));
+ Expect.equals(true, foo.isT(new List.fixedLength(5)));
Expect.equals(false, foo.isT(new List<Object>(5)));
Expect.equals(true, foo.isT(new List<int>(5)));
Expect.equals(false, foo.isT(new List<num>(5)));
@@ -69,7 +69,7 @@ class GenericInstanceof {
}
{
Foo foo = new Foo<List<num>>();
- Expect.equals(true, foo.isT(new List(5)));
+ Expect.equals(true, foo.isT(new List.fixedLength(5)));
Expect.equals(false, foo.isT(new List<Object>(5)));
Expect.equals(true, foo.isT(new List<int>(5)));
Expect.equals(true, foo.isT(new List<num>(5)));
@@ -77,7 +77,7 @@ class GenericInstanceof {
}
{
Foo foo = new Foo<List<String>>();
- Expect.equals(true, foo.isT(new List(5)));
+ Expect.equals(true, foo.isT(new List.fixedLength(5)));
Expect.equals(false, foo.isT(new List<Object>(5)));
Expect.equals(false, foo.isT(new List<int>(5)));
Expect.equals(false, foo.isT(new List<num>(5)));
@@ -85,7 +85,7 @@ class GenericInstanceof {
}
{
Foo foo = new Foo();
- Expect.equals(true, foo.isListT(new List(5)));
+ Expect.equals(true, foo.isListT(new List.fixedLength(5)));
Expect.equals(true, foo.isListT(new List<Object>(5)));
Expect.equals(true, foo.isListT(new List<int>(5)));
Expect.equals(true, foo.isListT(new List<num>(5)));
@@ -93,7 +93,7 @@ class GenericInstanceof {
}
{
Foo foo = new Foo<Object>();
- Expect.equals(true, foo.isListT(new List(5)));
+ Expect.equals(true, foo.isListT(new List.fixedLength(5)));
Expect.equals(true, foo.isListT(new List<Object>(5)));
Expect.equals(true, foo.isListT(new List<int>(5)));
Expect.equals(true, foo.isListT(new List<num>(5)));
@@ -101,7 +101,7 @@ class GenericInstanceof {
}
{
Foo foo = new Foo<int>();
- Expect.equals(true, foo.isListT(new List(5)));
+ Expect.equals(true, foo.isListT(new List.fixedLength(5)));
Expect.equals(false, foo.isListT(new List<Object>(5)));
Expect.equals(true, foo.isListT(new List<int>(5)));
Expect.equals(false, foo.isListT(new List<num>(5)));
@@ -109,7 +109,7 @@ class GenericInstanceof {
}
{
Foo foo = new Foo<num>();
- Expect.equals(true, foo.isListT(new List(5)));
+ Expect.equals(true, foo.isListT(new List.fixedLength(5)));
Expect.equals(false, foo.isListT(new List<Object>(5)));
Expect.equals(true, foo.isListT(new List<int>(5)));
Expect.equals(true, foo.isListT(new List<num>(5)));
@@ -117,7 +117,7 @@ class GenericInstanceof {
}
{
Foo foo = new Foo<String>();
- Expect.equals(true, foo.isListT(new List(5)));
+ Expect.equals(true, foo.isListT(new List.fixedLength(5)));
Expect.equals(false, foo.isListT(new List<Object>(5)));
Expect.equals(false, foo.isListT(new List<int>(5)));
Expect.equals(false, foo.isListT(new List<num>(5)));
« no previous file with comments | « tests/language/gc_test.dart ('k') | tests/language/incr_op_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698