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

Unified Diff: client/tests/client/json/json_tests.dart

Issue 9181003: Fix to the JsonStringifier in dart_json.dart to escape eols. The error messages that frog sends t... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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: client/tests/client/json/json_tests.dart
===================================================================
--- client/tests/client/json/json_tests.dart (revision 3201)
+++ client/tests/client/json/json_tests.dart (working copy)
@@ -78,6 +78,7 @@
expect(JSON.stringify(false)).equals('false');
expect(JSON.stringify(null)).equals('null');
expect(JSON.stringify(' hi there" bob ')).equals('" hi there\\" bob "');
+ expect(JSON.stringify('hi\nthere')).equals('"hi\\nthere"');
Anton Muhin 2012/01/12 13:23:00 may I ask you to add a test for \r as well?
devoncarew 2012/01/12 21:28:11 Done.
expect(JSON.stringify('')).equals('""');
// Lists.

Powered by Google App Engine
This is Rietveld 408576698