| Index: pkg/analysis_server/test/domain_completion_test.dart
|
| diff --git a/pkg/analysis_server/test/domain_completion_test.dart b/pkg/analysis_server/test/domain_completion_test.dart
|
| index 09736bfec52757f27a375eb82b144080577f69cf..ae8786ec835f308fd69fa3b63722394df65f0152 100644
|
| --- a/pkg/analysis_server/test/domain_completion_test.dart
|
| +++ b/pkg/analysis_server/test/domain_completion_test.dart
|
| @@ -583,24 +583,34 @@ class CompletionTest extends AbstractAnalysisTest {
|
| expect(suggestions, isEmpty);
|
| }
|
|
|
| - test_inDartDoc_reference2() async {
|
| + test_inDartDoc_reference1() async {
|
| + addFile(
|
| + '/testA.dart',
|
| + '''
|
| + part of libA;
|
| + foo(bar) => 0;''');
|
| addTestFile('''
|
| + library libA;
|
| + part "/testA.dart";
|
| + import "dart:math";
|
| /// The [^]
|
| main(aaa, bbb) {}
|
| ''');
|
| await getSuggestions();
|
| - assertHasResult(CompletionSuggestionKind.INVOCATION, 'main',
|
| + assertHasResult(CompletionSuggestionKind.IDENTIFIER, 'main',
|
| + relevance: DART_RELEVANCE_LOCAL_FUNCTION);
|
| + assertHasResult(CompletionSuggestionKind.IDENTIFIER, 'foo',
|
| relevance: DART_RELEVANCE_LOCAL_FUNCTION);
|
| - assertHasResult(CompletionSuggestionKind.INVOCATION, 'Object');
|
| + assertHasResult(CompletionSuggestionKind.IDENTIFIER, 'min');
|
| }
|
|
|
| - test_inDartDoc_reference3() async {
|
| + test_inDartDoc_reference2() async {
|
| addTestFile('''
|
| /// The [m^]
|
| main(aaa, bbb) {}
|
| ''');
|
| await getSuggestions();
|
| - assertHasResult(CompletionSuggestionKind.INVOCATION, 'main',
|
| + assertHasResult(CompletionSuggestionKind.IDENTIFIER, 'main',
|
| relevance: DART_RELEVANCE_LOCAL_FUNCTION);
|
| }
|
|
|
|
|