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

Unified Diff: tests/corelib/list_insert_range_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: 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/corelib/list_insert_range_test.dart
diff --git a/tests/corelib/list_insert_range_test.dart b/tests/corelib/list_insert_range_test.dart
index 26e48cf0325bcdd7baf86bd6f6694be34b25bdb5..aa5e6cd2734ecb05fa333b252ede64182a425414 100644
--- a/tests/corelib/list_insert_range_test.dart
+++ b/tests/corelib/list_insert_range_test.dart
@@ -23,16 +23,16 @@ main() {
list = []; list.insertRange(0, 3, 1);
Expect.listEquals([1, 1, 1], list);
- list = [1, 1]; list.insertRange(1, 1, 2);
+ list = [1, 1].toList(growable: true); list.insertRange(1, 1, 2);
floitsch 2013/02/26 13:54:19 revert changes.
Lasse Reichstein Nielsen 2013/02/26 15:26:00 Done.
Expect.listEquals([1, 2, 1], list);
- list = [1, 1]; list.insertRange(2, 2, 9);
+ list = [1, 1].toList(growable: true); list.insertRange(2, 2, 9);
Expect.listEquals([1, 1, 9, 9], list);
- list = [1, 1]; list.insertRange(2, 1);
+ list = [1, 1].toList(growable: true); list.insertRange(2, 1);
Expect.listEquals([1, 1, null], list);
- list = [1, 1]; list.insertRange(0, 3, 3);
+ list = [1, 1].toList(growable: true); list.insertRange(0, 3, 3);
Expect.listEquals([3, 3, 3, 1, 1], list);
}

Powered by Google App Engine
This is Rietveld 408576698