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

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

Issue 2690063002: Refactor CompilerOutput (Closed)
Patch Set: Updated cf. comments Created 3 years, 10 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/source_map_test.dart
diff --git a/tests/compiler/dart2js/source_map_test.dart b/tests/compiler/dart2js/source_map_test.dart
index 4d8cb5aa7d568ae30254a35eb19b33ff943b71e5..aaf86cfa61841e463d3d8f46defd96db49b582bc 100644
--- a/tests/compiler/dart2js/source_map_test.dart
+++ b/tests/compiler/dart2js/source_map_test.dart
@@ -8,6 +8,7 @@
library test.source_map;
import 'package:async_helper/async_helper.dart';
+import 'package:compiler/compiler_new.dart';
import 'package:expect/expect.dart';
import 'memory_compiler.dart';
@@ -47,14 +48,14 @@ test({String out, String sourceMap, String mapping, String file}) async {
showDiagnostics: true,
outputProvider: collector,
options: options);
- String jsOutput = collector.getOutput('', 'js');
+ String jsOutput = collector.getOutput('', OutputType.js);
Expect.isNotNull(jsOutput);
if (mapping != null) {
find(jsOutput, '//# sourceMappingURL=$mapping', true);
} else {
find(jsOutput, '//# sourceMappingURL=', false);
}
- String jsSourceMapOutput = collector.getOutput('', 'js.map');
+ String jsSourceMapOutput = collector.getOutput('', OutputType.sourceMap);
Expect.isNotNull(jsSourceMapOutput);
if (file != null) {
find(jsSourceMapOutput, '"file": "$file"', true);
« no previous file with comments | « tests/compiler/dart2js/serialization/helper.dart ('k') | tests/compiler/dart2js/sourcemaps/mapping_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698