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

Unified Diff: tests/language/instanceof2_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/instanceof2_test.dart
diff --git a/tests/language/instanceof2_test.dart b/tests/language/instanceof2_test.dart
index 0655b8663978ea48ac90835ae5063734ff8681ba..f93c0b39002bb016963f95455da1e6a024b4cc5e 100644
--- a/tests/language/instanceof2_test.dart
+++ b/tests/language/instanceof2_test.dart
@@ -54,7 +54,7 @@ class InstanceofTest {
Expect.equals(false, null is I);
{
- var a = new List.fixedLength(5);
+ var a = new List(5);
Expect.equals(true, a is List);
Expect.equals(true, a is List<Object>);
Expect.equals(true, a is List<int>);
@@ -62,7 +62,7 @@ class InstanceofTest {
Expect.equals(true, a is List<String>);
}
{
- var a = new List<Object>.fixedLength(5);
+ var a = new List<Object>(5);
Expect.equals(true, a is List);
Expect.equals(true, a is List<Object>);
Expect.equals(false, a is List<int>);
@@ -70,7 +70,7 @@ class InstanceofTest {
Expect.equals(false, a is List<String>);
}
{
- var a = new List<int>.fixedLength(5);
+ var a = new List<int>(5);
Expect.equals(true, a is List);
Expect.equals(true, a is List<Object>);
Expect.equals(true, a is List<int>);
@@ -78,7 +78,7 @@ class InstanceofTest {
Expect.equals(false, a is List<String>);
}
{
- var a = new List<num>.fixedLength(5);
+ var a = new List<num>(5);
Expect.equals(true, a is List);
Expect.equals(true, a is List<Object>);
Expect.equals(false, a is List<int>);
@@ -86,7 +86,7 @@ class InstanceofTest {
Expect.equals(false, a is List<String>);
}
{
- var a = new List<String>.fixedLength(5);
+ var a = new List<String>(5);
Expect.equals(true, a is List);
Expect.equals(true, a is List<Object>);
Expect.equals(false, a is List<int>);

Powered by Google App Engine
This is Rietveld 408576698