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

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: Fix after rebase. 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
« no previous file with comments | « tests/compiler/dart2js/resolver_test.dart ('k') | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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).
« no previous file with comments | « tests/compiler/dart2js/resolver_test.dart ('k') | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698