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

Unified Diff: tests/json/json_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/json/json_test.dart
diff --git a/tests/json/json_test.dart b/tests/json/json_test.dart
index 5ec1c8386ad70c64b1ac46088a606c2964cbe439..1fe74e57708e6598591ce655f2a4239ec0b98b26 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.fixedLength(0)), equals('[]'));
- expect(json.stringify(new List.fixedLength(3)), equals('[null,null,null]'));
+ expect(json.stringify(new List(0)), equals('[]'));
+ expect(json.stringify(new List(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]]'));

Powered by Google App Engine
This is Rietveld 408576698