aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-11 22:01:10 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-11 22:01:10 +0400
commitc0f820f4a4dfddbee06cb4c62a3b4609611dac62 (patch)
tree86cec76c0dcac0f8ee4048829fa722d4c183906b /test/src
parenta8e59d7af41ca05b68e2d916552cecbbacbf3e92 (diff)
downloaddokka-c0f820f4a4dfddbee06cb4c62a3b4609611dac62.tar.gz
dokka-c0f820f4a4dfddbee06cb4c62a3b4609611dac62.tar.bz2
dokka-c0f820f4a4dfddbee06cb4c62a3b4609611dac62.zip
Test for docs on parameters, cleanup.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/TestAPI.kt2
-rw-r--r--test/src/model/FunctionTest.kt1
2 files changed, 2 insertions, 1 deletions
diff --git a/test/src/TestAPI.kt b/test/src/TestAPI.kt
index 65254bca..e5669569 100644
--- a/test/src/TestAPI.kt
+++ b/test/src/TestAPI.kt
@@ -28,7 +28,7 @@ public fun verifyModel(vararg files: String, verifier: (DocumentationModel) -> U
}
val result = environment.processFiles { context, file ->
- context.createDocumentation(file)
+ context.createSourceModel(file)
}.fold(DocumentationModel()) {(aggregate, item) -> aggregate.merge(item) }
verifier(result)
Disposer.dispose(environment)
diff --git a/test/src/model/FunctionTest.kt b/test/src/model/FunctionTest.kt
index 90b937de..528166e6 100644
--- a/test/src/model/FunctionTest.kt
+++ b/test/src/model/FunctionTest.kt
@@ -30,6 +30,7 @@ Documentation"""
with(details.single()) {
assertEquals("x", name)
assertEquals(DocumentationNodeKind.Parameter, kind)
+ assertEquals("parameter", doc)
assertTrue(details.none())
assertTrue(members.none())
assertTrue(links.none())