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

Unified Diff: tests/compiler/dart2js_extra/list_factory_test.dart

Issue 11312122: Change List constructors. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload. Adapt code for List.fixedLength. Created 8 years 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/compiler/dart2js_extra/list_factory_test.dart
diff --git a/tests/compiler/dart2js_extra/list_factory_test.dart b/tests/compiler/dart2js_extra/list_factory_test.dart
index e7745736f2decde0dbb756e346a9195987e8645f..1d7b940291df7238aa4eb2fd1ef867d31d47a106 100644
--- a/tests/compiler/dart2js_extra/list_factory_test.dart
+++ b/tests/compiler/dart2js_extra/list_factory_test.dart
@@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
main() {
- var a = new List(4);
+ var a = new List.fixedLength(4);
Expect.equals(4, a.length);
a[0] = 42;
a[1] = 43;
« no previous file with comments | « tests/compiler/dart2js_extra/invalid_length_negative_test.dart ('k') | tests/corelib/collection_contains_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698