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

Unified Diff: test/dart_codegen/expect/convert/encoding.dart

Issue 963593002: Disable formatting and add new-lines to make tests faster. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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: test/dart_codegen/expect/convert/encoding.dart
diff --git a/test/dart_codegen/expect/convert/encoding.dart b/test/dart_codegen/expect/convert/encoding.dart
index aac3c2f9caa03e8d916d614e79ccad262c05059d..e5e6d5601b0e2733d2b748dd20f6714010a43e0f 100644
--- a/test/dart_codegen/expect/convert/encoding.dart
+++ b/test/dart_codegen/expect/convert/encoding.dart
@@ -1,50 +1,23 @@
part of dart.convert;
-
-abstract class Encoding extends Codec<String, List<int>> {
- const Encoding();
- Future<String> decodeStream(Stream<List<int>> byteStream) {
- return ((__x5) => DDC$RT.cast(__x5,
- DDC$RT.type((DDC$async$.Future<dynamic> _) {}),
- DDC$RT.type((DDC$async$.Future<String> _) {}), "CastDynamic",
- """line 14, column 12 of dart:convert/encoding.dart: """,
- __x5 is DDC$async$.Future<String>, false))(byteStream
- .transform(DDC$RT.cast(decoder,
- DDC$RT.type((Converter<List<int>, String> _) {}), DDC$RT
- .type((DDC$async$.StreamTransformer<List<int>, dynamic> _) {}),
- "CastDynamic",
- """line 15, column 18 of dart:convert/encoding.dart: """,
- decoder is DDC$async$.StreamTransformer<List<int>, dynamic>, false))
- .fold(new StringBuffer(), (buffer, string) => buffer..write(string))
- .then((buffer) => buffer.toString()));
+ abstract class Encoding extends Codec<String, List<int>> {const Encoding();
+ Future<String> decodeStream(Stream<List<int>> byteStream) {
+ return ((__x5) => DDC$RT.cast(__x5, DDC$RT.type((DDC$async$.Future<dynamic> _) {
+ }
+ ), DDC$RT.type((DDC$async$.Future<String> _) {
+ }
+ ), "CastDynamic", """line 14, column 12 of dart:convert/encoding.dart: """, __x5 is DDC$async$.Future<String>, false))(byteStream.transform(DDC$RT.cast(decoder, DDC$RT.type((Converter<List<int>, String> _) {
+ }
+ ), DDC$RT.type((DDC$async$.StreamTransformer<List<int>, dynamic> _) {
+ }
+ ), "CastDynamic", """line 15, column 18 of dart:convert/encoding.dart: """, decoder is DDC$async$.StreamTransformer<List<int>, dynamic>, false)).fold(new StringBuffer(), (buffer, string) => buffer..write(string)).then((buffer) => buffer.toString()));
}
- String get name;
- static Map<String, Encoding> _nameToEncoding = <String, Encoding>{
- "iso_8859-1:1987": LATIN1,
- "iso-ir-100": LATIN1,
- "iso_8859-1": LATIN1,
- "iso-8859-1": LATIN1,
- "latin1": LATIN1,
- "l1": LATIN1,
- "ibm819": LATIN1,
- "cp819": LATIN1,
- "csisolatin1": LATIN1,
- "iso-ir-6": ASCII,
- "ansi_x3.4-1968": ASCII,
- "ansi_x3.4-1986": ASCII,
- "iso_646.irv:1991": ASCII,
- "iso646-us": ASCII,
- "us-ascii": ASCII,
- "us": ASCII,
- "ibm367": ASCII,
- "cp367": ASCII,
- "csascii": ASCII,
- "ascii": ASCII,
- "csutf8": UTF8,
- "utf-8": UTF8
- };
- static Encoding getByName(String name) {
- if (name == null) return null;
- name = name.toLowerCase();
- return _nameToEncoding[name];
+ String get name;
+ static Map<String, Encoding> _nameToEncoding = <String, Encoding> {
+ "iso_8859-1:1987" : LATIN1, "iso-ir-100" : LATIN1, "iso_8859-1" : LATIN1, "iso-8859-1" : LATIN1, "latin1" : LATIN1, "l1" : LATIN1, "ibm819" : LATIN1, "cp819" : LATIN1, "csisolatin1" : LATIN1, "iso-ir-6" : ASCII, "ansi_x3.4-1968" : ASCII, "ansi_x3.4-1986" : ASCII, "iso_646.irv:1991" : ASCII, "iso646-us" : ASCII, "us-ascii" : ASCII, "us" : ASCII, "ibm367" : ASCII, "cp367" : ASCII, "csascii" : ASCII, "ascii" : ASCII, "csutf8" : UTF8, "utf-8" : UTF8}
+;
+ static Encoding getByName(String name) {
+ if (name == null) return null;
+ name = name.toLowerCase();
+ return _nameToEncoding[name];
}
}

Powered by Google App Engine
This is Rietveld 408576698