| Index: pkg/analysis_server/test/services/completion/keyword_contributor_test.dart
|
| diff --git a/pkg/analysis_server/test/services/completion/keyword_contributor_test.dart b/pkg/analysis_server/test/services/completion/keyword_contributor_test.dart
|
| index ca8a3932838cacb3e6b3a170f9ba828a563c1b4b..e09fd34e6d77fb9ae2001d73d02737e929f3a040 100644
|
| --- a/pkg/analysis_server/test/services/completion/keyword_contributor_test.dart
|
| +++ b/pkg/analysis_server/test/services/completion/keyword_contributor_test.dart
|
| @@ -337,6 +337,18 @@ class KeywordContributorTest extends AbstractCompletionTest {
|
| assertSuggestKeywords([]);
|
| }
|
|
|
| + test_constructor_param() {
|
| + addTestSource('class A { A(^) {});}');
|
| + expect(computeFast(), isTrue);
|
| + assertSuggestKeywords([Keyword.THIS]);
|
| + }
|
| +
|
| + test_constructor_param2() {
|
| + addTestSource('class A { A(t^) {});}');
|
| + expect(computeFast(), isTrue);
|
| + assertSuggestKeywords([Keyword.THIS]);
|
| + }
|
| +
|
| test_empty() {
|
| addTestSource('^');
|
| expect(computeFast(), isTrue);
|
| @@ -561,6 +573,18 @@ class A {
|
| assertSuggestKeywords(STMT_START_IN_CLASS);
|
| }
|
|
|
| + test_method_param() {
|
| + addTestSource('class A { foo(^) {});}');
|
| + expect(computeFast(), isTrue);
|
| + assertNoSuggestions();
|
| + }
|
| +
|
| + test_method_param2() {
|
| + addTestSource('class A { foo(t^) {});}');
|
| + expect(computeFast(), isTrue);
|
| + assertNoSuggestions();
|
| + }
|
| +
|
| test_named_constructor_invocation() {
|
| addTestSource('void main() {new Future.^}');
|
| expect(computeFast(), isTrue);
|
|
|