| Index: tests/compiler/dart2js/compiler_test.dart
|
| diff --git a/tests/compiler/dart2js/compiler_test.dart b/tests/compiler/dart2js/compiler_test.dart
|
| index 3e595c8343104137f4cb7161e1650c291ea72d7c..38377d112de17166c5da1b7bb313fa472bdc2237 100644
|
| --- a/tests/compiler/dart2js/compiler_test.dart
|
| +++ b/tests/compiler/dart2js/compiler_test.dart
|
| @@ -7,6 +7,7 @@ import "dart:async";
|
| import "package:async_helper/async_helper.dart";
|
| import 'package:compiler/compiler.dart';
|
| import "package:compiler/src/elements/elements.dart";
|
| +import "package:compiler/src/old_to_new_api.dart";
|
| import "package:expect/expect.dart";
|
|
|
| import "mock_compiler.dart";
|
| @@ -18,12 +19,12 @@ Future testErrorHandling() {
|
| return compiler.init().then((_) {
|
| compiler.parseScript('NoSuchPrefix.NoSuchType foo() {}');
|
| FunctionElement foo = compiler.mainApp.find('foo');
|
| - compiler.diagnosticHandler =
|
| + compiler.diagnosticHandler = new LegacyCompilerDiagnostics(
|
| (Uri uri, int begin, int end, String message, Diagnostic kind) {
|
| if (kind == Diagnostic.WARNING) {
|
| Expect.equals(foo, compiler.currentElement);
|
| }
|
| - };
|
| + });
|
| foo.computeType(compiler.resolution);
|
| Expect.equals(1, compiler.diagnosticCollector.warnings.length);
|
| });
|
|
|