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

Unified Diff: tests/corelib/list_filled_type_argument_test.dart

Issue 1440663003: Add "growable" parameter to List.filled constructor. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/corelib/growable_list_test.dart ('k') | tests/corelib/list_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/list_filled_type_argument_test.dart
diff --git a/tests/corelib/list_filled_type_argument_test.dart b/tests/corelib/list_filled_type_argument_test.dart
index 6d361cc05601351f5f34641de2c0c962c67442a5..1c3aff49e8db2ebe7e8286ed9f5cfe4670fddbda 100644
--- a/tests/corelib/list_filled_type_argument_test.dart
+++ b/tests/corelib/list_filled_type_argument_test.dart
@@ -8,4 +8,8 @@ main() {
var a = new List<int>.filled(42, 42);
Expect.isTrue(a is List<int>);
Expect.isFalse(a is List<String>);
+
+ a = new List<int>.filled(42, 42, growable: true);
+ Expect.isTrue(a is List<int>);
+ Expect.isFalse(a is List<String>);
}
« no previous file with comments | « tests/corelib/growable_list_test.dart ('k') | tests/corelib/list_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698