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

Unified Diff: tests/lib/convert/json_util_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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/lib/convert/json_util_test.dart
diff --git a/tests/lib/convert/json_util_test.dart b/tests/lib/convert/json_util_test.dart
index ad811d792614a303ce251db2085dcb1420663267..b22e51b02443ea9b3cf25bb8890b31f25dc97252 100644
--- a/tests/lib/convert/json_util_test.dart
+++ b/tests/lib/convert/json_util_test.dart
@@ -82,16 +82,16 @@ void testParse() {
// Maps.
Expect.mapEquals({}, JSON.decode(' {} '));
Expect.mapEquals({"key": "value"}, JSON.decode(' {"key": "value" } '));
- Expect.mapEquals({"key1": 1, "key2": 2},
- JSON.decode(' {"key1": 1, "key2": 2} '));
- Expect.mapEquals({"key1": 1},
- JSON.decode(' { "key1" : 1 } '));
+ Expect.mapEquals(
+ {"key1": 1, "key2": 2}, JSON.decode(' {"key1": 1, "key2": 2} '));
+ Expect.mapEquals({"key1": 1}, JSON.decode(' { "key1" : 1 } '));
}
void testParseInvalid() {
void testString(String s) {
Expect.throws(() => JSON.decode(s), (e) => e is FormatException);
}
+
// Scalars
testString("");
testString("-");
@@ -174,5 +174,5 @@ void testEscaping() {
Expect.stringEquals('"Got \\b, \\f, \\n, \\r, \\t, \\u0000, \\\\, and \\"."',
JSON.encode('Got \b, \f, \n, \r, \t, \u0000, \\, and ".'));
Expect.stringEquals('"Got \\b\\f\\n\\r\\t\\u0000\\\\\\"."',
- JSON.encode('Got \b\f\n\r\t\u0000\\".'));
+ JSON.encode('Got \b\f\n\r\t\u0000\\".'));
}

Powered by Google App Engine
This is Rietveld 408576698