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'); |
}); |
} |