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

Unified Diff: tests/standalone/io/system_encoding_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/standalone/io/system_encoding_test.dart
diff --git a/tests/standalone/io/system_encoding_test.dart b/tests/standalone/io/system_encoding_test.dart
index 1a363313565af9b0da68ec819e26a7e489a74753..9c7168bbaa00bc68d405dcebf9bed487928ac7b4 100644
--- a/tests/standalone/io/system_encoding_test.dart
+++ b/tests/standalone/io/system_encoding_test.dart
@@ -10,8 +10,7 @@ import "package:expect/expect.dart";
// This only works reliabily for "ASCII" cross platform as that is the only
// well known part of the default Windows code page.
void testEncodeDecode(String str) {
- Expect.equals(
- SYSTEM_ENCODING.decode(SYSTEM_ENCODING.encode(str)), str);
+ Expect.equals(SYSTEM_ENCODING.decode(SYSTEM_ENCODING.encode(str)), str);
}
// This only works reliabily for "ASCII" cross platform as that is the only
@@ -40,13 +39,11 @@ main() {
// On Windows the default Windows code page cannot encode these
// Unicode characters and the ? character is used.
Expect.listEquals(
- SYSTEM_ENCODING.encode('\u1234\u5678\u9abc'),
- '???'.codeUnits);
+ SYSTEM_ENCODING.encode('\u1234\u5678\u9abc'), '???'.codeUnits);
} else {
// On all systems except for Windows UTF-8 is used as the system
// encoding.
- Expect.listEquals(
- SYSTEM_ENCODING.encode('\u1234\u5678\u9abc'),
+ Expect.listEquals(SYSTEM_ENCODING.encode('\u1234\u5678\u9abc'),
UTF8.encode('\u1234\u5678\u9abc'));
}
}

Powered by Google App Engine
This is Rietveld 408576698