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

Unified Diff: tests/compiler/dart2js/uri_retention_test.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
Index: tests/compiler/dart2js/uri_retention_test.dart
diff --git a/tests/compiler/dart2js/uri_retention_test.dart b/tests/compiler/dart2js/uri_retention_test.dart
index d79aa320e3ecf5f47b043fb4c0a8271164fe458b..ac9d73c6208e9048625a4a969cba225b2546827b 100644
--- a/tests/compiler/dart2js/uri_retention_test.dart
+++ b/tests/compiler/dart2js/uri_retention_test.dart
@@ -10,15 +10,17 @@ import 'package:expect/expect.dart';
import "package:async_helper/async_helper.dart";
import 'memory_compiler.dart' show
- compilerFor;
+ compilerFor, OutputCollector;
Future<String> compileSources(sources, {bool minify, bool preserveUri}) {
var options = [];
if (minify) options.add("--minify");
if (preserveUri) options.add("--preserve-uris");
- var compiler = compilerFor(sources, options: options);
+ OutputCollector outputCollector = new OutputCollector();
+ var compiler = compilerFor(
+ sources, options: options, outputProvider: outputCollector);
return compiler.runCompiler(Uri.parse('memory:main.dart')).then((_) {
- return compiler.assembledCode;
+ return outputCollector.getOutput('', 'js');
});
}
« no previous file with comments | « tests/compiler/dart2js/source_map_deferred_d2js_validity_test.dart ('k') | tests/try/web/web_compiler_test_case.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698