From 1040288ca76e070445f1400df2fcc5a56310be28 Mon Sep 17 00:00:00 2001 From: Vadim Mishenev Date: Fri, 24 Feb 2023 17:44:24 +0200 Subject: Reorganize tabs for Classlike (#2764) --- .../signatures/ConstructorsSignaturesTest.kt | 171 +++++++++++---------- 1 file changed, 93 insertions(+), 78 deletions(-) (limited to 'plugins/base/src/test/kotlin/content') 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() + } } } } -- cgit