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

Unified Diff: tests/language/generic_instanceof.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/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..5c65ec12fdded4db8c9f081f9e9f97a03e68b7c8 100644
--- a/tests/language/generic_instanceof.dart
+++ b/tests/language/generic_instanceof.dart
@@ -37,91 +37,91 @@ class GenericInstanceof {
}
{
Foo foo = new Foo();
- Expect.equals(true, foo.isT(new List(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)));
- Expect.equals(true, foo.isT(new List<String>(5)));
+ Expect.equals(true, foo.isT(new List.fixedLength(5)));
+ Expect.equals(true, foo.isT(new List<Object>.fixedLength(5)));
+ Expect.equals(true, foo.isT(new List<int>.fixedLength(5)));
+ Expect.equals(true, foo.isT(new List<num>.fixedLength(5)));
+ Expect.equals(true, foo.isT(new List<String>.fixedLength(5)));
}
{
Foo foo = new Foo<List>();
- Expect.equals(true, foo.isT(new List(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)));
- Expect.equals(true, foo.isT(new List<String>(5)));
+ Expect.equals(true, foo.isT(new List.fixedLength(5)));
+ Expect.equals(true, foo.isT(new List<Object>.fixedLength(5)));
+ Expect.equals(true, foo.isT(new List<int>.fixedLength(5)));
+ Expect.equals(true, foo.isT(new List<num>.fixedLength(5)));
+ Expect.equals(true, foo.isT(new List<String>.fixedLength(5)));
}
{
Foo foo = new Foo<List<Object>>();
- Expect.equals(true, foo.isT(new List(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)));
- Expect.equals(true, foo.isT(new List<String>(5)));
+ Expect.equals(true, foo.isT(new List.fixedLength(5)));
+ Expect.equals(true, foo.isT(new List<Object>.fixedLength(5)));
+ Expect.equals(true, foo.isT(new List<int>.fixedLength(5)));
+ Expect.equals(true, foo.isT(new List<num>.fixedLength(5)));
+ Expect.equals(true, foo.isT(new List<String>.fixedLength(5)));
}
{
Foo foo = new Foo<List<int>>();
- Expect.equals(true, foo.isT(new List(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)));
- Expect.equals(false, foo.isT(new List<String>(5)));
+ Expect.equals(true, foo.isT(new List.fixedLength(5)));
+ Expect.equals(false, foo.isT(new List<Object>.fixedLength(5)));
+ Expect.equals(true, foo.isT(new List<int>.fixedLength(5)));
+ Expect.equals(false, foo.isT(new List<num>.fixedLength(5)));
+ Expect.equals(false, foo.isT(new List<String>.fixedLength(5)));
}
{
Foo foo = new Foo<List<num>>();
- Expect.equals(true, foo.isT(new List(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)));
- Expect.equals(false, foo.isT(new List<String>(5)));
+ Expect.equals(true, foo.isT(new List.fixedLength(5)));
+ Expect.equals(false, foo.isT(new List<Object>.fixedLength(5)));
+ Expect.equals(true, foo.isT(new List<int>.fixedLength(5)));
+ Expect.equals(true, foo.isT(new List<num>.fixedLength(5)));
+ Expect.equals(false, foo.isT(new List<String>.fixedLength(5)));
}
{
Foo foo = new Foo<List<String>>();
- Expect.equals(true, foo.isT(new List(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)));
- Expect.equals(true, foo.isT(new List<String>(5)));
+ Expect.equals(true, foo.isT(new List.fixedLength(5)));
+ Expect.equals(false, foo.isT(new List<Object>.fixedLength(5)));
+ Expect.equals(false, foo.isT(new List<int>.fixedLength(5)));
+ Expect.equals(false, foo.isT(new List<num>.fixedLength(5)));
+ Expect.equals(true, foo.isT(new List<String>.fixedLength(5)));
}
{
Foo foo = new Foo();
- Expect.equals(true, foo.isListT(new List(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)));
- Expect.equals(true, foo.isListT(new List<String>(5)));
+ Expect.equals(true, foo.isListT(new List.fixedLength(5)));
+ Expect.equals(true, foo.isListT(new List<Object>.fixedLength(5)));
+ Expect.equals(true, foo.isListT(new List<int>.fixedLength(5)));
+ Expect.equals(true, foo.isListT(new List<num>.fixedLength(5)));
+ Expect.equals(true, foo.isListT(new List<String>.fixedLength(5)));
}
{
Foo foo = new Foo<Object>();
- Expect.equals(true, foo.isListT(new List(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)));
- Expect.equals(true, foo.isListT(new List<String>(5)));
+ Expect.equals(true, foo.isListT(new List.fixedLength(5)));
+ Expect.equals(true, foo.isListT(new List<Object>.fixedLength(5)));
+ Expect.equals(true, foo.isListT(new List<int>.fixedLength(5)));
+ Expect.equals(true, foo.isListT(new List<num>.fixedLength(5)));
+ Expect.equals(true, foo.isListT(new List<String>.fixedLength(5)));
}
{
Foo foo = new Foo<int>();
- Expect.equals(true, foo.isListT(new List(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)));
- Expect.equals(false, foo.isListT(new List<String>(5)));
+ Expect.equals(true, foo.isListT(new List.fixedLength(5)));
+ Expect.equals(false, foo.isListT(new List<Object>.fixedLength(5)));
+ Expect.equals(true, foo.isListT(new List<int>.fixedLength(5)));
+ Expect.equals(false, foo.isListT(new List<num>.fixedLength(5)));
+ Expect.equals(false, foo.isListT(new List<String>.fixedLength(5)));
}
{
Foo foo = new Foo<num>();
- Expect.equals(true, foo.isListT(new List(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)));
- Expect.equals(false, foo.isListT(new List<String>(5)));
+ Expect.equals(true, foo.isListT(new List.fixedLength(5)));
+ Expect.equals(false, foo.isListT(new List<Object>.fixedLength(5)));
+ Expect.equals(true, foo.isListT(new List<int>.fixedLength(5)));
+ Expect.equals(true, foo.isListT(new List<num>.fixedLength(5)));
+ Expect.equals(false, foo.isListT(new List<String>.fixedLength(5)));
}
{
Foo foo = new Foo<String>();
- Expect.equals(true, foo.isListT(new List(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)));
- Expect.equals(true, foo.isListT(new List<String>(5)));
+ Expect.equals(true, foo.isListT(new List.fixedLength(5)));
+ Expect.equals(false, foo.isListT(new List<Object>.fixedLength(5)));
+ Expect.equals(false, foo.isListT(new List<int>.fixedLength(5)));
+ Expect.equals(false, foo.isListT(new List<num>.fixedLength(5)));
+ Expect.equals(true, foo.isListT(new List<String>.fixedLength(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