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

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

Issue 824103005: Revert "Remove Compiler.assembledCode." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: tests/compiler/dart2js/analyze_only_test.dart
diff --git a/tests/compiler/dart2js/analyze_only_test.dart b/tests/compiler/dart2js/analyze_only_test.dart
index 516c0d178419854ef0780f380b72f19ce370f43c..38f01014d8e357ab1f69b90e11693e24dfdb553c 100644
--- a/tests/compiler/dart2js/analyze_only_test.dart
+++ b/tests/compiler/dart2js/analyze_only_test.dart
@@ -15,8 +15,6 @@ import 'package:compiler/compiler.dart';
import 'package:compiler/src/dart2jslib.dart' show
MessageKind;
-import 'output_collector.dart';
-
runCompiler(String main, List<String> options,
onValue(String code, List errors, List warnings)) {
List errors = new List();
@@ -41,14 +39,13 @@ runCompiler(String main, List<String> options,
print('main source:\n$main');
print('options: $options\n');
asyncStart();
- OutputCollector outputCollector = new OutputCollector();
- Future<CompilationResult> result =
+ Future<String> result =
compile(new Uri(scheme: 'main'),
new Uri(scheme: 'lib', path: '/'),
new Uri(scheme: 'package', path: '/'),
- localProvider, localHandler, options, outputCollector);
- result.then((_) {
- onValue(outputCollector.getOutput('', 'js'), errors, warnings);
+ localProvider, localHandler, options);
+ result.then((String code) {
+ onValue(code, errors, warnings);
}, onError: (e) {
throw 'Compilation failed: ${Error.safeToString(e)}';
}).then(asyncSuccess).catchError((error, stack) {
« no previous file with comments | « pkg/dart2js_incremental/lib/caching_compiler.dart ('k') | tests/compiler/dart2js/backend_dart/dart_backend_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698