| Index: pkg/analysis_server/test/services/completion/dart/library_member_contributor_test.dart
|
| diff --git a/pkg/analysis_server/test/services/completion/dart/library_member_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/library_member_contributor_test.dart
|
| index 1f6b66e699a361ede5cb517fb8991c90367b1ce5..ac38fa6b4e25999e0415c3d798904c8a0cbd2f85 100644
|
| --- a/pkg/analysis_server/test/services/completion/dart/library_member_contributor_test.dart
|
| +++ b/pkg/analysis_server/test/services/completion/dart/library_member_contributor_test.dart
|
| @@ -32,6 +32,38 @@ class LibraryMemberContributorTest extends DartCompletionContributorTest {
|
| assertNotSuggested('loadLibrary');
|
| }
|
|
|
| + test_libraryPrefix_cascade() async {
|
| + addTestSource('''
|
| + import "dart:math" as math;
|
| + main() {math..^}''');
|
| + await computeSuggestions();
|
| + assertNoSuggestions();
|
| + }
|
| +
|
| + test_libraryPrefix_cascade2() async {
|
| + addTestSource('''
|
| + import "dart:math" as math;
|
| + main() {math.^.}''');
|
| + await computeSuggestions();
|
| + assertSuggestFunction('min', 'num');
|
| + }
|
| +
|
| + test_libraryPrefix_cascade3() async {
|
| + addTestSource('''
|
| + import "dart:math" as math;
|
| + main() {math..^a}''');
|
| + await computeSuggestions();
|
| + assertNoSuggestions();
|
| + }
|
| +
|
| + test_libraryPrefix_cascade4() async {
|
| + addTestSource('''
|
| + import "dart:math" as math;
|
| + main() {math.^.a}''');
|
| + await computeSuggestions();
|
| + assertSuggestFunction('min', 'num');
|
| + }
|
| +
|
| test_libraryPrefix2() async {
|
| // SimpleIdentifier MethodInvocation ExpressionStatement
|
| addTestSource('import "dart:async" as bar; foo() {bar.^ print("f")}');
|
|
|