| Index: pkg/analysis_server/test/analysis/get_hover_test.dart
|
| diff --git a/pkg/analysis_server/test/analysis/get_hover_test.dart b/pkg/analysis_server/test/analysis/get_hover_test.dart
|
| index a39f6163508cdea53c4350d03db6fa547f3e4f6c..d499a4c6d4945ebd97c0a30043c18e4e4ebac12d 100644
|
| --- a/pkg/analysis_server/test/analysis/get_hover_test.dart
|
| +++ b/pkg/analysis_server/test/analysis/get_hover_test.dart
|
| @@ -81,6 +81,7 @@ List<String> fff(int a, String b) {
|
| // element
|
| expect(hover.containingLibraryName, 'my.library');
|
| expect(hover.containingLibraryPath, testFile);
|
| + expect(hover.containingClassDescription, isNull);
|
| expect(hover.dartdoc, '''doc aaa\ndoc bbb''');
|
| expect(hover.elementDescription, 'fff(int a, String b) → List<String>');
|
| expect(hover.elementKind, 'function');
|
| @@ -101,6 +102,7 @@ foo(Object myParameter) {}
|
| ''');
|
| return prepareHover('123').then((HoverInformation hover) {
|
| // literal, no Element
|
| + expect(hover.containingClassDescription, isNull);
|
| expect(hover.elementDescription, isNull);
|
| expect(hover.elementKind, isNull);
|
| // types
|
| @@ -125,6 +127,7 @@ class A {
|
| // element
|
| expect(hover.containingLibraryName, 'my.library');
|
| expect(hover.containingLibraryPath, testFile);
|
| + expect(hover.containingClassDescription, 'A');
|
| expect(hover.dartdoc, '''doc aaa\ndoc bbb''');
|
| expect(hover.elementDescription, 'A.mmm(int a, String b) → List<String>');
|
| expect(hover.elementKind, 'method');
|
| @@ -180,6 +183,7 @@ main(A a) {
|
| // element
|
| expect(hover.containingLibraryName, 'my.library');
|
| expect(hover.containingLibraryPath, testFile);
|
| + expect(hover.containingClassDescription, 'A');
|
| expect(hover.dartdoc, '''doc aaa\ndoc bbb''');
|
| expect(hover.elementDescription, 'String fff');
|
| expect(hover.elementKind, 'field');
|
|
|