Index: tests/compiler/dart2js/size_test.dart |
diff --git a/tests/compiler/dart2js/size_test.dart b/tests/compiler/dart2js/size_test.dart |
index e6f7b255d91607f2a2e9ebbed62045f9de059e71..423b5c26896b2dc0552110911f96497088b7e4e3 100644 |
--- a/tests/compiler/dart2js/size_test.dart |
+++ b/tests/compiler/dart2js/size_test.dart |
@@ -8,24 +8,22 @@ import "compiler_helper.dart"; |
const String TEST = "main() => [];"; |
-const String DEFAULT_CORELIB_WITH_LIST = r''' |
- class Object { |
- Object(); |
- } |
- class bool {} |
- abstract class List {} |
- class num {} |
- class int {} |
- class double {} |
- class String {} |
- class Function {} |
- class Null {} |
- class Type {} |
- class Map {} |
- class StackTrace {} |
- identical(a, b) => true; |
- const proxy = 0; |
-'''; |
+const Map<String, String> DEFAULT_CORELIB_WITH_LIST = const <String, String>{ |
+ 'Object': 'class Object { Object(); }', |
+ 'bool': 'class bool {}', |
+ 'List': 'abstract class List {}', |
+ 'num': 'class num {}', |
+ 'int': 'class int {}', |
+ 'double': 'class double {}', |
+ 'String': 'class String {}', |
+ 'Function': 'class Function {}', |
+ 'Null': 'class Null {}', |
+ 'Type': 'class Type {}', |
+ 'Map': 'class Map {}', |
+ 'StackTrace': 'class StackTrace {}', |
+ 'identical': 'identical(a, b) => true;', |
+ 'proxy': 'const proxy = 0;', |
+}; |
main() { |
asyncTest(() => compileAll(TEST, coreSource: DEFAULT_CORELIB_WITH_LIST). |