| Index: pkg/analysis_server/test/services/completion/common_usage_computer_test.dart
|
| diff --git a/pkg/analysis_server/test/services/completion/common_usage_computer_test.dart b/pkg/analysis_server/test/services/completion/common_usage_computer_test.dart
|
| index 3e15f2e829160988e9694ab6a8b654bc95e2941e..8ed33f166056ef6da5e04c440b18431f96bb9914 100644
|
| --- a/pkg/analysis_server/test/services/completion/common_usage_computer_test.dart
|
| +++ b/pkg/analysis_server/test/services/completion/common_usage_computer_test.dart
|
| @@ -172,6 +172,23 @@ class CommonUsageComputerTest extends AbstractAnalysisTest {
|
| assertNoResult('A');
|
| }
|
|
|
| + test_PrefixedIdentifier_field_inPart() async {
|
| + // SimpleIdentifier PrefixedIdentifeir ExpressionStatement
|
| + addFile('/project/bin/myLib.dart',
|
| + 'library L; part "$testFile"; class A {static int s2;}');
|
| + addTestFile('part of L; foo() {A.^}');
|
| + await getSuggestions({
|
| + 'L.A': ['s2']
|
| + });
|
| + expect(replacementOffset, equals(completionOffset));
|
| + expect(replacementLength, equals(0));
|
| + assertHasResult(
|
| + CompletionSuggestionKind.INVOCATION, 's2', DART_RELEVANCE_COMMON_USAGE);
|
| + assertNoResult('Future');
|
| + assertNoResult('Object');
|
| + assertNoResult('A');
|
| + }
|
| +
|
| test_PrefixedIdentifier_getter() async {
|
| // SimpleIdentifier PrefixedIdentifeir ExpressionStatement
|
| addTestFile('class A {int get g1 => 1; int get g2 => 2; x() {new A().^}}');
|
|
|