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

Unified Diff: tests/compiler/dart2js/sourcemaps/mapping_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
« no previous file with comments | « tests/compiler/dart2js/source_map_test.dart ('k') | tests/compiler/dart2js/sourcemaps/nomapping_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/sourcemaps/mapping_test.dart
diff --git a/tests/compiler/dart2js/sourcemaps/mapping_test.dart b/tests/compiler/dart2js/sourcemaps/mapping_test.dart
index ee1901ed1b7eb0a2eaceefd84e80c6f13c6502e0..4d84ed073b4cf6e82661b573fbd026e19f07f659 100644
--- a/tests/compiler/dart2js/sourcemaps/mapping_test.dart
+++ b/tests/compiler/dart2js/sourcemaps/mapping_test.dart
@@ -138,10 +138,11 @@ Future runTest(int index, Test test,
options: options);
Expect.isTrue(compilationResult.isSuccess,
"Unsuccessful compilation of test:\n${test.code}");
- String sourceMapText = collector.getOutput('', 'js.map');
+ String sourceMapText = collector.getOutput('', OutputType.sourceMap);
SingleMapping sourceMap = parse(sourceMapText);
if (writeJs) {
- new File('out.js').writeAsStringSync(collector.getOutput('', 'js'));
+ new File('out.js')
+ .writeAsStringSync(collector.getOutput('', OutputType.js));
new File('out.js.map').writeAsStringSync(sourceMapText);
}
« no previous file with comments | « tests/compiler/dart2js/source_map_test.dart ('k') | tests/compiler/dart2js/sourcemaps/nomapping_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698