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

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

Issue 2690063002: Refactor CompilerOutput (Closed)
Patch Set: Cleanup. 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/compiler_helper.dart
diff --git a/tests/compiler/dart2js/compiler_helper.dart b/tests/compiler/dart2js/compiler_helper.dart
index 38884fe4b07a989bf333cb77bddefda6e626986a..64030c57c4dfda0da967e654d2ab241ed6d6ae0a 100644
--- a/tests/compiler/dart2js/compiler_helper.dart
+++ b/tests/compiler/dart2js/compiler_helper.dart
@@ -7,6 +7,8 @@ library compiler_helper;
import 'dart:async';
import "package:expect/expect.dart";
+import 'package:compiler/compiler_new.dart';
+
import 'package:compiler/src/elements/elements.dart' as lego;
export 'package:compiler/src/elements/elements.dart';
@@ -87,7 +89,7 @@ Future<String> compile(String code,
if (check != null) {
check(generated);
}
- return returnAll ? outputCollector.getOutput('', 'js') : generated;
+ return returnAll ? outputCollector.getOutput('', OutputType.js) : generated;
} else {
List<String> options = <String>[Flags.disableTypeInference];
if (enableTypeAssertions) {
@@ -126,7 +128,7 @@ Future<String> compile(String code,
if (check != null) {
check(generated);
}
- return returnAll ? outputCollector.getOutput('', 'js') : generated;
+ return returnAll ? outputCollector.getOutput('', OutputType.js) : generated;
}
}
@@ -153,7 +155,7 @@ Future<String> compileAll(String code,
compilationSucceded,
'Unexpected compilation error(s): '
'${compiler.diagnosticCollector.errors}');
- return outputCollector.getOutput('', 'js');
+ return outputCollector.getOutput('', OutputType.js);
});
}

Powered by Google App Engine
This is Rietveld 408576698