diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-03-06 16:11:32 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-03-06 16:11:32 +0100 |
commit | 8f159151f182f4561594a4c23c22e82830bcc9b4 (patch) | |
tree | 6b351f83ae3808bdcc93c6a9755f9139b184c36b /test/src/model/ClassTest.kt | |
parent | 0cab60b604cd7f0f642ab389973bfce1bbbe6071 (diff) | |
download | dokka-8f159151f182f4561594a4c23c22e82830bcc9b4.tar.gz dokka-8f159151f182f4561594a4c23c22e82830bcc9b4.tar.bz2 dokka-8f159151f182f4561594a4c23c22e82830bcc9b4.zip |
generate documentation for default object extension properties
Diffstat (limited to 'test/src/model/ClassTest.kt')
-rw-r--r-- | test/src/model/ClassTest.kt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/src/model/ClassTest.kt b/test/src/model/ClassTest.kt index d16b9491..61af5361 100644 --- a/test/src/model/ClassTest.kt +++ b/test/src/model/ClassTest.kt @@ -244,4 +244,13 @@ public class ClassTest { assertEquals("inner", modifiers[2].name) } } + + Test fun defaultObjectExtension() { + verifyModel("test/data/classes/defaultObjectExtension.kt") { model -> + val pkg = model.members.single() + val cls = pkg.members.single { it.name == "Foo" } + val extensions = cls.extensions.filter { it.kind == DocumentationNode.Kind.DefaultObjectProperty } + assertEquals(1, extensions.size()) + } + } } |