| Index: pkg/analysis_server/test/services/completion/prefixed_element_contributor_test.dart
|
| diff --git a/pkg/analysis_server/test/services/completion/prefixed_element_contributor_test.dart b/pkg/analysis_server/test/services/completion/prefixed_element_contributor_test.dart
|
| index 1e3cb2fb21c1af20b446f765432620822ea3e03a..08fd8bc8148f9f0d6d6ca48dfc06491edd4e0d09 100644
|
| --- a/pkg/analysis_server/test/services/completion/prefixed_element_contributor_test.dart
|
| +++ b/pkg/analysis_server/test/services/completion/prefixed_element_contributor_test.dart
|
| @@ -88,6 +88,24 @@ void f(Derived d) {
|
| contributor = new PrefixedElementContributor();
|
| }
|
|
|
| + test_doc_method() {
|
| + addTestSource('''
|
| +class C {
|
| + /// My method.
|
| + ///
|
| + /// Longer documentation.
|
| + void m() {}
|
| +}
|
| +void main() {new C().^}''');
|
| + return computeFull((bool result) {
|
| + CompletionSuggestion suggestion = assertSuggestMethod('m', 'C', 'void',
|
| + docSummaryMatcher: 'My method.',
|
| + docCompleteMatcher: 'My method.\n\nLonger documentation.');
|
| + expect(suggestion.requiredParameterCount, 0);
|
| + expect(suggestion.hasNamedParameters, false);
|
| + });
|
| + }
|
| +
|
| test_enumConst() {
|
| addTestSource('enum E { one, two } main() {E.^}');
|
| return computeFull((bool result) {
|
|
|