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. |