diff options
author | Simon Ogorodnik <sem-oro@yandex.ru> | 2016-11-29 15:53:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-29 15:53:40 +0300 |
commit | edda34b73bbbd9537eb499668c47a7a901b284c2 (patch) | |
tree | c8eac1b67b688f036740f5a8bfac492dcd91c202 /core/src/test/kotlin | |
parent | 4b2c12c651df3ee8b3ab680edbce4e257c204a3d (diff) | |
parent | f3dd7eb1d36913920e431c88a633cf5c5e098820 (diff) | |
download | dokka-edda34b73bbbd9537eb499668c47a7a901b284c2.tar.gz dokka-edda34b73bbbd9537eb499668c47a7a901b284c2.tar.bz2 dokka-edda34b73bbbd9537eb499668c47a7a901b284c2.zip |
Merge pull request #119 from Kotlin/0.9.10/GH-115
Fix for #115 `@param` and `@return` tags is missing in javadoc output
Diffstat (limited to 'core/src/test/kotlin')
-rw-r--r-- | core/src/test/kotlin/javadoc/JavadocTest.kt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/test/kotlin/javadoc/JavadocTest.kt b/core/src/test/kotlin/javadoc/JavadocTest.kt index 4c0f7f0f..f7f86881 100644 --- a/core/src/test/kotlin/javadoc/JavadocTest.kt +++ b/core/src/test/kotlin/javadoc/JavadocTest.kt @@ -123,6 +123,14 @@ class JavadocTest { } } + @Test fun testKDocKeywordsOnMethod() { + verifyJavadoc("testdata/javadoc/kdocKeywordsOnMethod.kt", withKotlinRuntime = true) { doc -> + val method = doc.classNamed("KdocKeywordsOnMethodKt")!!.methods()[0] + assertEquals("@return [ContentText(text=value of a)]", method.tags("return").first().text()) + assertEquals("@param a [ContentText(text=Some string)]", method.paramTags().first().text()) + assertEquals("@throws FireException [ContentText(text=in case of fire)]", method.throwsTags().first().text()) + } + } private fun verifyJavadoc(name: String, withJdk: Boolean = false, |