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

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
« no previous file with comments | « client/json/dart_json.dart ('k') | frog/server/dart_json.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/client/json/json_tests.dart
===================================================================
--- client/tests/client/json/json_tests.dart (revision 3253)
+++ client/tests/client/json/json_tests.dart (working copy)
@@ -78,6 +78,9 @@
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\\there')).equals('"hi\\\\there"');
+ expect(JSON.stringify('hi\nthere')).equals('"hi\\nthere"');
+ expect(JSON.stringify('hi\r\nthere')).equals('"hi\\r\\nthere"');
expect(JSON.stringify('')).equals('""');
// Lists.
« no previous file with comments | « client/json/dart_json.dart ('k') | frog/server/dart_json.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698