aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt
diff options
context:
space:
mode:
authorMarcin Aman <maman@virtuslab.com>2020-05-20 17:58:31 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-05-20 18:13:23 +0200
commit091294c5a920521df1b4bf61c2492b78f3559321 (patch)
treef00833367aca8f8bfdd6ec77495a40576e30d78e /plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt
parent885bf34ac6d9b9a5974cab35d9dd5a224b0ccc4c (diff)
downloaddokka-091294c5a920521df1b4bf61c2492b78f3559321.tar.gz
dokka-091294c5a920521df1b4bf61c2492b78f3559321.tar.bz2
dokka-091294c5a920521df1b4bf61c2492b78f3559321.zip
Tabs for sections - update tests
Diffstat (limited to 'plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt')
-rw-r--r--plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt169
1 files changed, 96 insertions, 73 deletions
diff --git a/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt b/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt
index 8121543d..b5cb3b72 100644
--- a/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt
+++ b/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt
@@ -35,7 +35,9 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
val page = module.children.single { it.name == "test" }
.children.single { it.name == "function" } as ContentPage
page.content.assertNode {
- header(1) { +"function" }
+ group{
+ header(1) { +"function" }
+ }
divergentGroup {
divergentInstance {
divergent {
@@ -66,21 +68,24 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
val page = module.children.single { it.name == "test" }
.children.single { it.name == "function" } as ContentPage
page.content.assertNode {
- header(1) { +"function" }
+ group {
+ header(1) { +"function" }
+ }
divergentGroup {
divergentInstance {
divergent {
bareSignature("function", null, "abc" to "String")
}
after {
- header(3) { +"Description" }
- platformHinted {
- header(4) { +"See also" }
- table {
- group {
- //DRI should be "test//abc/#/-1/"
- link { +"abc" }
- group { }
+ header(2) { +"See also" }
+ group {
+ platformHinted {
+ table {
+ group {
+ //DRI should be "test//abc/#/-1/"
+ link { +"abc" }
+ group { }
+ }
}
}
}
@@ -110,21 +115,24 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
val page = module.children.single { it.name == "test" }
.children.single { it.name == "function" } as ContentPage
page.content.assertNode {
- header(1) { +"function" }
+ group {
+ header(1) { +"function" }
+ }
divergentGroup {
divergentInstance {
divergent {
bareSignature("function", null, "abc" to "String")
}
after {
- header(3) { +"Description" }
- platformHinted {
- header(4) { +"See also" }
- table {
- group {
- //DRI should be "test//abc/#/-1/"
- link { +"abc" }
- group { +"Comment to abc" }
+ header(2) { +"See also" }
+ group {
+ platformHinted {
+ table {
+ group {
+ //DRI should be "test//abc/#/-1/"
+ link { +"abc" }
+ group { +"Comment to abc" }
+ }
}
}
}
@@ -154,21 +162,24 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
val page = module.children.single { it.name == "test" }
.children.single { it.name == "function" } as ContentPage
page.content.assertNode {
- header(1) { +"function" }
+ group {
+ header(1) { +"function" }
+ }
divergentGroup {
divergentInstance {
divergent {
bareSignature("function", null, "abc" to "String")
}
after {
- header(3) { +"Description" }
- platformHinted {
- header(4) { +"See also" }
- table {
- group {
- //DRI should be "kotlin.collections/Collection////"
- link { +"Collection" }
- group { }
+ header(2) { +"See also" }
+ group {
+ platformHinted {
+ table {
+ group {
+ //DRI should be "kotlin.collections/Collection////"
+ link { +"Collection" }
+ group { }
+ }
}
}
}
@@ -198,25 +209,27 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
val page = module.children.single { it.name == "test" }
.children.single { it.name == "function" } as ContentPage
page.content.assertNode {
- header(1) { +"function" }
+ group {
+ header(1) { +"function" }
+ }
divergentGroup {
divergentInstance {
divergent {
bareSignature("function", null, "abc" to "String")
}
after {
- header(3) { +"Description" }
- platformHinted {
- header(4) { +"See also" }
- table {
- group {
- //DRI should be "test//abc/#/-1/"
- link { +"Collection" }
- group { +"Comment to stdliblink" }
+ header(2) { +"See also" }
+ group {
+ platformHinted {
+ table {
+ group {
+ //DRI should be "test//abc/#/-1/"
+ link { +"Collection" }
+ group { +"Comment to stdliblink" }
+ }
}
}
}
-
}
}
}
@@ -246,24 +259,28 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
val page = module.children.single { it.name == "test" }
.children.single { it.name == "function" } as ContentPage
page.content.assertNode {
- header(1) { +"function" }
+ group {
+ header(1) { +"function" }
+ }
divergentGroup {
divergentInstance {
divergent {
bareSignature("function", null, "abc" to "String")
}
after {
- header(3) { +"Description" }
- platformHinted {
- pWrapped("random comment")
- unnamedTag("Author") { +"pikinier20" }
- unnamedTag("Since") { +"0.11" }
- header(4) { +"See also" }
- table {
- group {
- //DRI should be "test//abc/#/-1/"
- link { +"Collection" }
- group { +"Comment to stdliblink" }
+ pWrapped("random comment")
+ unnamedTag("Author") { +"pikinier20" }
+ unnamedTag("Since") { +"0.11" }
+
+ header(2) { +"See also" }
+ group {
+ platformHinted {
+ table {
+ group {
+ //DRI should be "test//abc/#/-1/"
+ link { +"Collection" }
+ group { +"Comment to stdliblink" }
+ }
}
}
}
@@ -294,21 +311,24 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
val page = module.children.single { it.name == "test" }
.children.single { it.name == "function" } as ContentPage
page.content.assertNode {
- header(1) { +"function" }
+ group {
+ header(1) { +"function" }
+ }
divergentGroup {
divergentInstance {
divergent {
bareSignature("function", null, "abc" to "String")
}
after {
- header(3) { +"Description" }
- platformHinted {
- header(4) { +"See also" }
- table {
- group {
- //DRI should be "test//abc/#/-1/"
- link { +"abc" }
- group { +"Comment to abc2" }
+ header(2) { +"See also" }
+ group {
+ platformHinted {
+ table {
+ group {
+ //DRI should be "test//abc/#/-1/"
+ link { +"abc" }
+ group { +"Comment to abc2" }
+ }
}
}
}
@@ -339,26 +359,29 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
val page = module.children.single { it.name == "test" }
.children.single { it.name == "function" } as ContentPage
page.content.assertNode {
- header(1) { +"function" }
+ group {
+ header(1) { +"function" }
+ }
divergentGroup {
divergentInstance {
divergent {
bareSignature("function", null, "abc" to "String")
}
after {
- header(3) { +"Description" }
- platformHinted {
- header(4) { +"See also" }
- table {
- group {
- //DRI should be "test//abc/#/-1/"
- link { +"abc" }
- group { +"Comment to abc1" }
- }
- group {
- //DRI should be "test//abc/#/-1/"
- link { +"Collection" }
- group { +"Comment to collection" }
+ header(2) { +"See also" }
+ group {
+ platformHinted {
+ table {
+ group {
+ //DRI should be "test//abc/#/-1/"
+ link { +"abc" }
+ group { +"Comment to abc1" }
+ }
+ group {
+ //DRI should be "test//abc/#/-1/"
+ link { +"Collection" }
+ group { +"Comment to collection" }
+ }
}
}
}