| Index: pkg/analysis_server/test/services/correction/fix_test.dart
|
| diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart
|
| index 766afc02ffda23d99d79666fc9f3dc23cd49a64f..9af602c2d9f443e795616c033243442c609844c4 100644
|
| --- a/pkg/analysis_server/test/services/correction/fix_test.dart
|
| +++ b/pkg/analysis_server/test/services/correction/fix_test.dart
|
| @@ -1227,6 +1227,30 @@ main() {
|
| ''');
|
| }
|
|
|
| + void test_importLibraryProject_withFunction_unresolvedMethod() {
|
| + addSource('/lib.dart', '''
|
| +library lib;
|
| +myFunction() {}
|
| +''');
|
| + _indexTestUnit('''
|
| +class A {
|
| + main() {
|
| + myFunction();
|
| + }
|
| +}
|
| +''');
|
| + performAllAnalysisTasks();
|
| + assertHasFix(FixKind.IMPORT_LIBRARY_PROJECT, '''
|
| +import 'lib.dart';
|
| +
|
| +class A {
|
| + main() {
|
| + myFunction();
|
| + }
|
| +}
|
| +''');
|
| + }
|
| +
|
| void test_importLibraryProject_withTopLevelVariable() {
|
| addSource('/lib.dart', '''
|
| library lib;
|
|
|