| Index: dart/tests/try/poi/poi_find_test.dart
|
| diff --git a/dart/tests/try/poi/poi_find_test.dart b/dart/tests/try/poi/poi_find_test.dart
|
| index a477784db7bb64f76e2e06bb6e59fccb63b82398..3830020c65ddb0d32749660fc6c3dc0ae44b2dc1 100644
|
| --- a/dart/tests/try/poi/poi_find_test.dart
|
| +++ b/dart/tests/try/poi/poi_find_test.dart
|
| @@ -21,9 +21,16 @@ import 'package:expect/expect.dart';
|
| import 'package:compiler/implementation/elements/elements.dart' show
|
| Element;
|
|
|
| +import 'package:compiler/implementation/source_file_provider.dart' show
|
| + FormattingDiagnosticHandler;
|
| +
|
| Future testPoi() {
|
| Uri script = Platform.script.resolve('data/empty_main.dart');
|
| - return poi.runPoi(script, 225).then((Element element) {
|
| + FormattingDiagnosticHandler handler = new FormattingDiagnosticHandler();
|
| + handler.verbose = true;
|
| +
|
| + Future future = poi.runPoi(script, 225, handler.provider, handler);
|
| + return future.then((Element element) {
|
| Uri foundScript = element.compilationUnit.script.resourceUri;
|
| Expect.stringEquals('$script', '$foundScript');
|
| Expect.stringEquals('main', element.name);
|
|
|