| 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 fd218a0bfcd4564c1bc201943631b7a08e9bcf1c..ddb0211fb6ce02349e39336715c071fca1257180 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,21 @@ class LibraryMemberContributorTest extends DartCompletionContributorTest {
|
| assertNotSuggested('loadLibrary');
|
| }
|
|
|
| + test_libraryPrefix2() async {
|
| + // SimpleIdentifier MethodInvocation ExpressionStatement
|
| + addTestSource('import "dart:async" as bar; foo() {bar.^ print("f")}');
|
| + await computeSuggestions();
|
| + assertSuggestClass('Future');
|
| + }
|
| +
|
| + test_libraryPrefix3() async {
|
| + // SimpleIdentifier MethodInvocation ExpressionStatement
|
| + addTestSource('import "dart:async" as bar; foo() {new bar.F^ print("f")}');
|
| + await computeSuggestions();
|
| + assertSuggestConstructor('Future');
|
| + assertSuggestConstructor('Future.delayed');
|
| + }
|
| +
|
| test_libraryPrefix_cascade() async {
|
| addTestSource('''
|
| import "dart:math" as math;
|
| @@ -64,21 +79,6 @@ class LibraryMemberContributorTest extends DartCompletionContributorTest {
|
| assertSuggestFunction('min', 'num');
|
| }
|
|
|
| - test_libraryPrefix2() async {
|
| - // SimpleIdentifier MethodInvocation ExpressionStatement
|
| - addTestSource('import "dart:async" as bar; foo() {bar.^ print("f")}');
|
| - await computeSuggestions();
|
| - assertSuggestClass('Future');
|
| - }
|
| -
|
| - test_libraryPrefix3() async {
|
| - // SimpleIdentifier MethodInvocation ExpressionStatement
|
| - addTestSource('import "dart:async" as bar; foo() {new bar.F^ print("f")}');
|
| - await computeSuggestions();
|
| - assertSuggestConstructor('Future');
|
| - assertSuggestConstructor('Future.delayed');
|
| - }
|
| -
|
| test_libraryPrefix_deferred() async {
|
| // SimpleIdentifier PrefixedIdentifier ExpressionStatement
|
| addTestSource('import "dart:async" deferred as bar; foo() {bar.^}');
|
|
|