Chromium Code Reviews| 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 cc1a4e47786f88267bad2c148274c7eea77a98b8..39e14e7c0fb5c26483f675bd7619fbe4b0f3f851 100644 |
| --- a/pkg/analysis_server/test/analysis/get_hover_test.dart |
| +++ b/pkg/analysis_server/test/analysis/get_hover_test.dart |
| @@ -96,6 +96,36 @@ main() { |
| expect(hover.dartdoc, '''doc aaa\ndoc bbb'''); |
| } |
| + test_dartdoc_inherited_methodByMethod_fromInterface() async { |
|
Brian Wilkerson
2016/01/25 22:09:59
I'll suggest a couple more tests.
(1) Indirectly
scheglov
2016/01/26 00:52:50
Done.
scheglov
2016/01/26 00:52:50
Done.
|
| + addTestFile(''' |
| +class A { |
| + /// my doc |
| + m() {} // in A |
| +} |
| + |
| +class B implements A { |
| + m() {} // in B |
| +} |
| +'''); |
| + HoverInformation hover = await prepareHover('m() {} // in B'); |
| + expect(hover.dartdoc, '''my doc\n\nCopied from `A`.'''); |
| + } |
| + |
| + test_dartdoc_inherited_methodByMethod_fromSuper() async { |
| + addTestFile(''' |
| +class A { |
| + /// my doc |
| + m() {} // in A |
| +} |
| + |
| +class B extends A { |
| + m() {} // in B |
| +} |
| +'''); |
| + HoverInformation hover = await prepareHover('m() {} // in B'); |
| + expect(hover.dartdoc, '''my doc\n\nCopied from `A`.'''); |
| + } |
| + |
| test_enum() async { |
| addTestFile(''' |
| enum MyEnum {AAA, BBB, CCC} |