| 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,
|
|
|