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

Unified Diff: tests/compiler/dart2js/compiler_helper.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
Index: tests/compiler/dart2js/compiler_helper.dart
diff --git a/tests/compiler/dart2js/compiler_helper.dart b/tests/compiler/dart2js/compiler_helper.dart
index a2e9bd9e2fa8da9430bfbb2865b07e21e9394d94..c84f1d8d4c73b0facc794fedbc9ab99bf29d9783 100644
--- a/tests/compiler/dart2js/compiler_helper.dart
+++ b/tests/compiler/dart2js/compiler_helper.dart
@@ -46,8 +46,6 @@ export 'mock_compiler.dart';
Future<String> compile(String code,
{String entry: 'main',
- String coreSource: DEFAULT_CORELIB,
- String interceptorsSource: DEFAULT_INTERCEPTORSLIB,
bool enableTypeAssertions: false,
bool minify: false,
bool analyzeAll: false,
@@ -55,11 +53,9 @@ Future<String> compile(String code,
void check(String generated)}) {
MockCompiler compiler = new MockCompiler.internal(
enableTypeAssertions: enableTypeAssertions,
- coreSource: coreSource,
// Type inference does not run when manually
// compiling a method.
disableTypeInference: true,
- interceptorsSource: interceptorsSource,
enableMinification: minify,
disableInlining: disableInlining);
return compiler.init().then((_) {
@@ -92,7 +88,7 @@ Future<String> compile(String code,
MockCompiler compilerFor(String code, Uri uri,
{bool analyzeAll: false,
bool analyzeOnly: false,
- String coreSource: DEFAULT_CORELIB,
+ Map<String, String> coreSource,
bool disableInlining: true,
bool minify: false,
int expectedErrors,
@@ -110,7 +106,7 @@ MockCompiler compilerFor(String code, Uri uri,
}
Future<String> compileAll(String code,
- {String coreSource: DEFAULT_CORELIB,
+ {Map<String, String> coreSource,
bool disableInlining: true,
bool minify: false,
int expectedErrors,
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/native_handler.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698