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

Unified Diff: tests/json/json_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
« no previous file with comments | « tests/isolate/message_test.dart ('k') | tests/language/bailout4_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/json/json_test.dart
diff --git a/tests/json/json_test.dart b/tests/json/json_test.dart
index 1fe74e57708e6598591ce655f2a4239ec0b98b26..5ec1c8386ad70c64b1ac46088a606c2964cbe439 100644
--- a/tests/json/json_test.dart
+++ b/tests/json/json_test.dart
@@ -90,8 +90,8 @@ main() {
// Lists.
expect(json.stringify([]), equals('[]'));
- expect(json.stringify(new List(0)), equals('[]'));
- expect(json.stringify(new List(3)), equals('[null,null,null]'));
+ expect(json.stringify(new List.fixedLength(0)), equals('[]'));
+ expect(json.stringify(new List.fixedLength(3)), equals('[null,null,null]'));
validateRoundTrip([3, -4.5, null, true, 'hi', false]);
expect(json.stringify([[3], [], [null], ['hi', true]]),
equals('[[3],[],[null],["hi",true]]'));
« no previous file with comments | « tests/isolate/message_test.dart ('k') | tests/language/bailout4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698