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

Unified Diff: tests/compiler/dart2js/backend_dart/test_helper.dart

Issue 832363002: Remove Compiler.assembledCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix unittest Created 5 years, 11 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/backend_dart/end2end_test.dart ('k') | tests/compiler/dart2js/compiler_alt.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/backend_dart/test_helper.dart
diff --git a/tests/compiler/dart2js/backend_dart/test_helper.dart b/tests/compiler/dart2js/backend_dart/test_helper.dart
index 60cca7b91a1a7a5a7e1cd5b24387d4635fd373bd..3e43cd9a658d9fbe8695187fba4479aafe72611f 100644
--- a/tests/compiler/dart2js/backend_dart/test_helper.dart
+++ b/tests/compiler/dart2js/backend_dart/test_helper.dart
@@ -6,16 +6,19 @@ library dart_backend.test_helper;
import 'dart:async';
import 'package:async_helper/async_helper.dart';
+import 'package:compiler/compiler.dart' as api;
import 'package:compiler/src/dart2jslib.dart';
import '../../../../pkg/analyzer2dart/test/test_helper.dart';
import '../compiler_helper.dart';
/// Compiles the given dart code (which must include a 'main' function) and
/// returns the compiler.
-Future<Compiler> compilerFor(String code) {
+Future<Compiler> compilerFor(String code,
+ {api.CompilerOutputProvider outputProvider}) {
MockCompiler compiler = new MockCompiler.internal(
emitJavaScript: false,
- enableMinification: false);
+ enableMinification: false,
+ outputProvider: outputProvider);
compiler.diagnosticHandler = createHandler(compiler, code);
return compiler.init().then((_) {
compiler.parseScript(code);
« no previous file with comments | « tests/compiler/dart2js/backend_dart/end2end_test.dart ('k') | tests/compiler/dart2js/compiler_alt.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698