| Index: tests/compiler/dart2js/type_test_helper.dart
|
| diff --git a/tests/compiler/dart2js/type_test_helper.dart b/tests/compiler/dart2js/type_test_helper.dart
|
| index 34fa22add132d9098210ba06d17cd856924ce1aa..c0f2e60555a8bb25342933f3d420771bc7cdee0f 100644
|
| --- a/tests/compiler/dart2js/type_test_helper.dart
|
| +++ b/tests/compiler/dart2js/type_test_helper.dart
|
| @@ -52,6 +52,7 @@ class TypeEnvironment {
|
| uri,
|
| analyzeAll: !stopAfterTypeInference,
|
| analyzeOnly: !stopAfterTypeInference);
|
| + mockCompiler.diagnosticHandler = mock.createHandler(mockCompiler, source);
|
| getErrors = () => mockCompiler.errors;
|
| getWarnings = () => mockCompiler.warnings;
|
| compiler = mockCompiler;
|
| @@ -61,7 +62,7 @@ class TypeEnvironment {
|
| compiler = memory.compilerFor(
|
| {'main.dart': source},
|
| diagnosticHandler: collector,
|
| - options: stopAfterTypeInference
|
| + options: stopAfterTypeInference
|
| ? [] : ['--analyze-all', '--analyze-only']);
|
| getErrors = () => collector.errors;
|
| getWarnings = () => collector.warnings;
|
|
|