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

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

Issue 1417323005: Rename Compiler.runCompiler -> runInternal. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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/analyze_all_test.dart
diff --git a/tests/compiler/dart2js/analyze_all_test.dart b/tests/compiler/dart2js/analyze_all_test.dart
index 2d72c7632bbef01edf88710f2fbd29cd54a7b8ea..caab884c163064c4f7686e6666b77da77f6d618b 100644
--- a/tests/compiler/dart2js/analyze_all_test.dart
+++ b/tests/compiler/dart2js/analyze_all_test.dart
@@ -30,16 +30,16 @@ main() {
main() {
Uri uri = Uri.parse('test:code');
var compiler1 = compilerFor(SOURCE, uri, analyzeAll: false);
- asyncTest(() => compiler1.runCompiler(uri).then((_) {
- Expect.isFalse(compiler1.compilationFailed);
+ asyncTest(() => compiler1.run(uri).then((compilationSucceded) {
+ Expect.isTrue(compilationSucceded);
print(compiler1.warnings);
Expect.isTrue(compiler1.warnings.isEmpty, 'unexpected warnings');
Expect.isTrue(compiler1.errors.isEmpty, 'unexpected errors');
}));
var compiler2 = compilerFor(SOURCE, uri, analyzeAll: true);
- asyncTest(() => compiler2.runCompiler(uri).then((_) {
- Expect.isTrue(compiler2.compilationFailed);
+ asyncTest(() => compiler2.run(uri).then((compilationSucceded) {
+ Expect.isFalse(compilationSucceded);
Expect.isTrue(compiler2.warnings.isEmpty,
'unexpected warnings: ${compiler2.warnings}');
Expect.equals(2, compiler2.errors.length,

Powered by Google App Engine
This is Rietveld 408576698