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

Unified Diff: tests/compiler/dart2js/size_test.dart

Issue 362243003: Generate mock libraries and assert that helpers are non-null. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/compiler/dart2js/size_test.dart
diff --git a/tests/compiler/dart2js/size_test.dart b/tests/compiler/dart2js/size_test.dart
index e6f7b255d91607f2a2e9ebbed62045f9de059e71..ea3a2c1aa474abd5186bf7c41cc51e6255da1110 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 DEFAULT_CORELIB_WITH_LIST = const {
+ '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).

Powered by Google App Engine
This is Rietveld 408576698