aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/content
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2023-02-24 17:44:24 +0200
committerGitHub <noreply@github.com>2023-02-24 17:44:24 +0200
commit1040288ca76e070445f1400df2fcc5a56310be28 (patch)
tree52bed40e8a320f0835540b0cd38ea1899800e395 /plugins/base/src/test/kotlin/content
parent8d23340d1c377b8f490cdee3c2c874453d321dd8 (diff)
downloaddokka-1040288ca76e070445f1400df2fcc5a56310be28.tar.gz
dokka-1040288ca76e070445f1400df2fcc5a56310be28.tar.bz2
dokka-1040288ca76e070445f1400df2fcc5a56310be28.zip
Reorganize tabs for Classlike (#2764)
Diffstat (limited to 'plugins/base/src/test/kotlin/content')
-rw-r--r--plugins/base/src/test/kotlin/content/signatures/ConstructorsSignaturesTest.kt171
1 files changed, 93 insertions, 78 deletions
diff --git a/plugins/base/src/test/kotlin/content/signatures/ConstructorsSignaturesTest.kt b/plugins/base/src/test/kotlin/content/signatures/ConstructorsSignaturesTest.kt
index c8c088f7..0cf94c18 100644
--- a/plugins/base/src/test/kotlin/content/signatures/ConstructorsSignaturesTest.kt
+++ b/plugins/base/src/test/kotlin/content/signatures/ConstructorsSignaturesTest.kt
@@ -2,6 +2,7 @@ package content.signatures
import matchers.content.*
import org.jetbrains.dokka.base.testApi.testRunner.BaseAbstractTest
+import org.jetbrains.dokka.pages.BasicTabbedContentType
import org.jetbrains.dokka.pages.ContentPage
import org.junit.jupiter.api.Test
@@ -189,27 +190,31 @@ class ConstructorsSignaturesTest : BaseAbstractTest() {
}
}
}
- group {
- header { +"Constructors" }
- table {
- group {
- link { +"SomeClass" }
- platformHinted {
- group {
- +"constructor"
- +"("
- +")"
- }
+ tabbedGroup {
+ group {
+ tab(BasicTabbedContentType.CONSTRUCTOR) {
+ header { +"Constructors" }
+ table {
group {
- +"constructor"
- +"("
- group {
+ link { +"SomeClass" }
+ platformHinted {
+ group {
+ +"constructor"
+ +"("
+ +")"
+ }
group {
- +"a: "
- group { link { +"String" } }
+ +"constructor"
+ +"("
+ group {
+ group {
+ +"a: "
+ group { link { +"String" } }
+ }
+ }
+ +")"
}
}
- +")"
}
}
}
@@ -268,56 +273,60 @@ class ConstructorsSignaturesTest : BaseAbstractTest() {
skipAllNotMatching()
}
}
- group {
- header { +"Constructors" }
- table {
- group {
- link { +"SomeClass" }
- platformHinted {
- group {
- +"constructor"
- +"("
- +")"
- }
- group {
- group {
- group { +"ctor one" }
- }
- }
+ tabbedGroup {
+ group {
+ tab(BasicTabbedContentType.CONSTRUCTOR) {
+ header { +"Constructors" }
+ table {
group {
- +"constructor"
- +"("
- group {
+ link { +"SomeClass" }
+ platformHinted {
+ group {
+ +"constructor"
+ +"("
+ +")"
+ }
group {
- +"b: "
group {
- link { +"Int" }
+ group { +"ctor one" }
}
}
- }
- +")"
- }
- group {
- group {
- group { +"ctor two" }
- }
- }
- group {
- +"constructor"
- +"("
- group {
group {
- +"a: "
+ +"constructor"
+ +"("
group {
- link { +"String" }
+ group {
+ +"b: "
+ group {
+ link { +"Int" }
+ }
+ }
+ }
+ +")"
+ }
+ group {
+ group {
+ group { +"ctor two" }
+ }
+ }
+ group {
+ +"constructor"
+ +"("
+ group {
+ group {
+ +"a: "
+ group {
+ link { +"String" }
+ }
+ }
+ }
+ +")"
+ }
+ group {
+ group {
+ group { +"ctor comment" }
}
}
- }
- +")"
- }
- group {
- group {
- group { +"ctor comment" }
}
}
}
@@ -366,28 +375,32 @@ class ConstructorsSignaturesTest : BaseAbstractTest() {
skipAllNotMatching()
}
}
- group {
- header { +"Constructors" }
- table {
- group {
- link { +"SomeClass" }
- platformHinted {
+ tabbedGroup {
+ group {
+ tab(BasicTabbedContentType.CONSTRUCTOR) {
+ header { +"Constructors" }
+ table {
group {
- +"constructor"
- +"("
- group {
+ link { +"SomeClass" }
+ platformHinted {
group {
- +"a: "
+ +"constructor"
+ +"("
group {
- link { +"String" }
+ group {
+ +"a: "
+ group {
+ link { +"String" }
+ }
+ }
+ }
+ +")"
+ }
+ group {
+ group {
+ group { +"ctor comment" }
}
}
- }
- +")"
- }
- group {
- group {
- group { +"ctor comment" }
}
}
}
@@ -434,9 +447,11 @@ class ConstructorsSignaturesTest : BaseAbstractTest() {
}
group {
group {
- header { +"Properties" }
- table {
- skipAllNotMatching()
+ group {
+ header { +"Properties" }
+ table {
+ skipAllNotMatching()
+ }
}
}
}