aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/content
diff options
context:
space:
mode:
authorBłażej Kardyś <bkardys@virtuslab.com>2020-07-17 03:48:03 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-11 14:27:44 +0200
commitaeb2014eee704be377c06205d16f60562d2a8cf1 (patch)
treed144b627a0b379bebedf7e015f6d469fea61d0bb /plugins/base/src/test/kotlin/content
parent49c9bcc586abb7c78f569526a05fea97da86993d (diff)
downloaddokka-aeb2014eee704be377c06205d16f60562d2a8cf1.tar.gz
dokka-aeb2014eee704be377c06205d16f60562d2a8cf1.tar.bz2
dokka-aeb2014eee704be377c06205d16f60562d2a8cf1.zip
Fixing javadoc comment parser for psi files
Diffstat (limited to 'plugins/base/src/test/kotlin/content')
-rw-r--r--plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt54
-rw-r--r--plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt34
-rw-r--r--plugins/base/src/test/kotlin/content/signatures/SkippingParenthesisForConstructorsTest.kt2
3 files changed, 51 insertions, 39 deletions
diff --git a/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt b/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt
index a9689bc5..4ac5717d 100644
--- a/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt
+++ b/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt
@@ -86,7 +86,7 @@ class ContentForParamsTest : AbstractCoreTest() {
divergentGroup {
divergentInstance {
before {
- pWrapped("comment to function")
+ group { pWrapped("comment to function") }
}
divergent {
bareSignature(
@@ -131,8 +131,8 @@ class ContentForParamsTest : AbstractCoreTest() {
divergentGroup {
divergentInstance {
before {
- unnamedTag("Author") { +"Kordyjan" }
- unnamedTag("Since") { +"0.11" }
+ unnamedTag("Author") { group { +"Kordyjan" } }
+ unnamedTag("Since") { group { +"0.11" } }
}
divergent {
bareSignature(
@@ -178,9 +178,9 @@ class ContentForParamsTest : AbstractCoreTest() {
divergentGroup {
divergentInstance {
before {
- pWrapped("comment to function")
- unnamedTag("Author") { +"Kordyjan" }
- unnamedTag("Since") { +"0.11" }
+ group { pWrapped("comment to function") }
+ unnamedTag("Author") { group { +"Kordyjan" } }
+ unnamedTag("Since") { group { +"0.11" } }
}
divergent {
bareSignature(
@@ -225,14 +225,14 @@ class ContentForParamsTest : AbstractCoreTest() {
divergentGroup {
divergentInstance {
before {
- pWrapped("comment to function")
+ group { pWrapped("comment to function") }
header(2) { +"Parameters" }
group {
platformHinted {
table {
group {
+"abc"
- group { +"comment to param" }
+ group { group { +"comment to param" } }
}
}
}
@@ -283,22 +283,22 @@ class ContentForParamsTest : AbstractCoreTest() {
divergentGroup {
divergentInstance {
before {
- pWrapped("comment to function")
+ group { group { group { +"comment to function" } } }
header(2) { +"Parameters" }
group {
platformHinted {
table {
group {
+"first"
- group { +"comment to first param" }
+ group { group { +"comment to first param" } }
}
group {
+"second"
- group { +"comment to second param" }
+ group { group { +"comment to second param" } }
}
group {
+"third"
- group { +"comment to third param" }
+ group { group { +"comment to third param" } }
}
}
}
@@ -351,15 +351,15 @@ class ContentForParamsTest : AbstractCoreTest() {
table {
group {
+"first"
- group { +"comment to first param" }
+ group { group { +"comment to first param" } }
}
group {
+"second"
- group { +"comment to second param" }
+ group { group { +"comment to second param" } }
}
group {
+"third"
- group { +"comment to third param" }
+ group { group { +"comment to third param" } }
}
}
}
@@ -406,18 +406,18 @@ class ContentForParamsTest : AbstractCoreTest() {
divergentGroup {
divergentInstance {
before {
- pWrapped("comment to function")
+ group { pWrapped("comment to function") }
header(2) { +"Parameters" }
group {
platformHinted {
table {
group {
+"<receiver>"
- group { +"comment to receiver" }
+ group { group { +"comment to receiver" } }
}
group {
+"abc"
- group { +"comment to param" }
+ group { group { +"comment to param" } }
}
}
}
@@ -468,18 +468,18 @@ class ContentForParamsTest : AbstractCoreTest() {
divergentGroup {
divergentInstance {
before {
- pWrapped("comment to function")
+ group { group { group { +"comment to function" } } }
header(2) { +"Parameters" }
group {
platformHinted {
table {
group {
+"first"
- group { +"comment to first param" }
+ group { group { +"comment to first param" } }
}
group {
+"third"
- group { +"comment to third param" }
+ group { group { +"comment to third param" } }
}
}
}
@@ -529,9 +529,9 @@ class ContentForParamsTest : AbstractCoreTest() {
divergentGroup {
divergentInstance {
before {
- pWrapped("comment to function")
- unnamedTag("Author") { +"Kordyjan" }
- unnamedTag("Since") { +"0.11" }
+ group { pWrapped("comment to function") }
+ unnamedTag("Author") { group { +"Kordyjan" } }
+ unnamedTag("Since") { group { +"0.11" } }
header(2) { +"Parameters" }
group {
@@ -539,15 +539,15 @@ class ContentForParamsTest : AbstractCoreTest() {
table {
group {
+"first"
- group { +"comment to first param" }
+ group { group { +"comment to first param" } }
}
group {
+"second"
- group { +"comment to second param" }
+ group { group { +"comment to second param" } }
}
group {
+"third"
- group { +"comment to third param" }
+ group { group { +"comment to third param" } }
}
}
}
diff --git a/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt b/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt
index 24970660..fd51c895 100644
--- a/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt
+++ b/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt
@@ -89,7 +89,7 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
group {
//DRI should be "test//abc/#/-1/"
link { +"abc" }
- group { }
+ group { group { } }
}
}
}
@@ -144,7 +144,9 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
group {
//DRI should be "test//abc/#/-1/"
link { +"abc" }
- group { +"Comment to abc" }
+ group {
+ group { +"Comment to abc" }
+ }
}
}
}
@@ -199,7 +201,9 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
group {
//DRI should be "kotlin.collections/Collection////"
link { +"Collection" }
- group { }
+ group {
+ group { }
+ }
}
}
}
@@ -254,7 +258,9 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
group {
//DRI should be "test//abc/#/-1/"
link { +"Collection" }
- group { +"Comment to stdliblink" }
+ group {
+ group { +"Comment to stdliblink" }
+ }
}
}
}
@@ -305,9 +311,9 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
divergentGroup {
divergentInstance {
before {
- pWrapped("random comment")
- unnamedTag("Author") { +"pikinier20" }
- unnamedTag("Since") { +"0.11" }
+ group { group { group { +"random comment"} } }
+ unnamedTag("Author") { group { +"pikinier20" } }
+ unnamedTag("Since") { group { +"0.11" } }
header(2) { +"See also" }
group {
@@ -316,7 +322,9 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
group {
//DRI should be "test//abc/#/-1/"
link { +"Collection" }
- group { +"Comment to stdliblink" }
+ group {
+ group { +"Comment to stdliblink" }
+ }
}
}
}
@@ -372,7 +380,9 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
group {
//DRI should be "test//abc/#/-1/"
link { +"abc" }
- group { +"Comment to abc2" }
+ group {
+ group { +"Comment to abc2" }
+ }
}
}
}
@@ -428,12 +438,14 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
group {
//DRI should be "test//abc/#/-1/"
link { +"abc" }
- group { +"Comment to abc1" }
+ group {
+ group { +"Comment to abc1" }
+ }
}
group {
//DRI should be "test//abc/#/-1/"
link { +"Collection" }
- group { +"Comment to collection" }
+ group { group { +"Comment to collection" } }
}
}
}
diff --git a/plugins/base/src/test/kotlin/content/signatures/SkippingParenthesisForConstructorsTest.kt b/plugins/base/src/test/kotlin/content/signatures/SkippingParenthesisForConstructorsTest.kt
index 90a38055..b3da3f71 100644
--- a/plugins/base/src/test/kotlin/content/signatures/SkippingParenthesisForConstructorsTest.kt
+++ b/plugins/base/src/test/kotlin/content/signatures/SkippingParenthesisForConstructorsTest.kt
@@ -230,7 +230,7 @@ class ConstructorsSignaturesTest : AbstractCoreTest() {
platformHinted {
group {
group {
- +"ctor comment"
+ group { +"ctor comment" }
}
}
group {