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

Unified Diff: tests/json/json_test.dart

Issue 26652003: Update json/json_test to new parameter format. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | no next file » | 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 3f6235782711b43ded0b73427686ad59e7ddc109..1c7e4441248cb502e46b6587a0fcc634acc63565 100644
--- a/tests/json/json_test.dart
+++ b/tests/json/json_test.dart
@@ -139,8 +139,9 @@ main() {
test('stringify custom converter', () {
List l = [const C(0), const C(1)];
- expect(JSON.encode(l, (x) => "C(${x.id})"), equals("[C(0),C(1)]"));
- expect(JSON.encode(l), equals("[C/0,C/1]"));
+ expect(JSON.encode(l, toEncodable: (x) => "C(${x.id})"),
+ equals('["C(0)","C(1)"]'));
+ expect(JSON.encode(l), equals('["C/0","C/1"]'));
});
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698