| Index: tests/compiler/dart2js/analyze_dart2js_test.dart
|
| diff --git a/tests/compiler/dart2js/analyze_dart2js_test.dart b/tests/compiler/dart2js/analyze_dart2js_test.dart
|
| index 602f904b7e0fa991ca7e81eabd36f7cccc82e689..f5fc77c444a429e7b0daeabe97ae7e4cd06d9407 100644
|
| --- a/tests/compiler/dart2js/analyze_dart2js_test.dart
|
| +++ b/tests/compiler/dart2js/analyze_dart2js_test.dart
|
| @@ -4,9 +4,11 @@
|
|
|
| library analyze_dart2js;
|
|
|
| +import 'package:async_helper/async_helper.dart';
|
| import 'package:compiler/src/filenames.dart';
|
| +import 'package:compiler/src/compiler.dart';
|
| import 'analyze_helper.dart';
|
| -import "package:async_helper/async_helper.dart";
|
| +import 'related_types.dart';
|
|
|
| /**
|
| * Map of whitelisted warnings and errors.
|
| @@ -24,5 +26,11 @@ const Map<String,List<String>> WHITE_LIST = const {
|
|
|
| void main() {
|
| var uri = currentDirectory.resolve('pkg/compiler/lib/src/dart2js.dart');
|
| - asyncTest(() => analyze([uri], WHITE_LIST));
|
| + asyncTest(() => analyze([uri], WHITE_LIST, checkResults: checkResults));
|
| }
|
| +
|
| +bool checkResults(Compiler compiler,
|
| + CollectingDiagnosticHandler handler) {
|
| + checkRelatedTypes(compiler);
|
| + return !handler.hasHint;
|
| +}
|
|
|