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

Unified Diff: tests/language/generic_instanceof.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/generic_instanceof.dart
diff --git a/tests/language/generic_instanceof.dart b/tests/language/generic_instanceof.dart
index 5c65ec12fdded4db8c9f081f9e9f97a03e68b7c8..3f64976d6b547f3022e32d9d1f93f028455ca41d 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.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)));
+ 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)));
}
{
Foo foo = new Foo<List>();
- 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)));
+ 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)));
}
{
Foo foo = new Foo<List<Object>>();
- 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)));
+ 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)));
}
{
Foo foo = new Foo<List<int>>();
- 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)));
+ 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)));
}
{
Foo foo = new Foo<List<num>>();
- 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)));
+ 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)));
}
{
Foo foo = new Foo<List<String>>();
- 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)));
+ 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)));
}
{
Foo foo = new Foo();
- 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)));
+ 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)));
}
{
Foo foo = new Foo<Object>();
- 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)));
+ 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)));
}
{
Foo foo = new Foo<int>();
- 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)));
+ 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)));
}
{
Foo foo = new Foo<num>();
- 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)));
+ 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)));
}
{
Foo foo = new Foo<String>();
- 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)));
+ 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)));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698