Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: pkg/analysis_server/test/services/completion/prefixed_element_contributor_test.dart

Issue 1380223003: Issue 23694. Include 'docSummary' and 'docComplete' into CompletionSuggestion. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: tweak Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/test/services/completion/imported_reference_contributor_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « pkg/analysis_server/test/services/completion/imported_reference_contributor_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698