aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin/javadoc/JavadocTest.kt
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@users.noreply.github.com>2019-03-11 17:11:50 +0100
committerSimon Ogorodnik <simon.ogorodnik@gmail.com>2019-03-11 19:11:50 +0300
commit61b126692bb2ede06911ae1c493e8417f0bbe49d (patch)
tree29068cb287d24cbf130d1d8a070fd6b60387222d /core/src/test/kotlin/javadoc/JavadocTest.kt
parent7d7e2012e35722c6c0315b2205d708ef5d4341d9 (diff)
downloaddokka-61b126692bb2ede06911ae1c493e8417f0bbe49d.tar.gz
dokka-61b126692bb2ede06911ae1c493e8417f0bbe49d.tar.bz2
dokka-61b126692bb2ede06911ae1c493e8417f0bbe49d.zip
Allow linking arguments with methods, change link label (#431)
* Add PsiParameter to link arguments with methods, change link label
Diffstat (limited to 'core/src/test/kotlin/javadoc/JavadocTest.kt')
-rw-r--r--core/src/test/kotlin/javadoc/JavadocTest.kt12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/src/test/kotlin/javadoc/JavadocTest.kt b/core/src/test/kotlin/javadoc/JavadocTest.kt
index 3e5b5ff8..6adbe7a0 100644
--- a/core/src/test/kotlin/javadoc/JavadocTest.kt
+++ b/core/src/test/kotlin/javadoc/JavadocTest.kt
@@ -259,6 +259,18 @@ class JavadocTest {
}
}
+ @Test
+ fun testArgumentReference() {
+ verifyJavadoc("testdata/javadoc/argumentReference.kt") { doc ->
+ val classDoc = doc.classNamed("ArgumentReferenceKt")!!
+ val method = classDoc.methods().first()
+ val tag = method.seeTags().first()
+ assertEquals("argNamedError", tag.referencedMemberName())
+ assertEquals("error", tag.label())
+ }
+ }
+
+
private fun verifyJavadoc(name: String,
withJdk: Boolean = false,
withKotlinRuntime: Boolean = false,