diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2022-09-02 17:44:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-02 17:44:05 +0200 |
commit | 56ff8f3f24209bc9edaece876c56bd3fde1fbf8a (patch) | |
tree | 82ec6b6d9295f09b96d37166d2423b036313d7a6 /plugins/base/src/test/kotlin/content/params | |
parent | 7aae28c09fc52f67d18babb0238dc8a4d397c2ad (diff) | |
download | dokka-56ff8f3f24209bc9edaece876c56bd3fde1fbf8a.tar.gz dokka-56ff8f3f24209bc9edaece876c56bd3fde1fbf8a.tar.bz2 dokka-56ff8f3f24209bc9edaece876c56bd3fde1fbf8a.zip |
Underline `@param` tag key for more consistency (#2643)
* Underline `@param` tag key for more consistency
* Correct keyValue table column ratio
Diffstat (limited to 'plugins/base/src/test/kotlin/content/params')
-rw-r--r-- | plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt b/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt index 7e11dc85..3531f148 100644 --- a/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt +++ b/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt @@ -7,10 +7,8 @@ import org.jetbrains.dokka.model.dfs import org.jetbrains.dokka.model.doc.DocumentationNode import org.jetbrains.dokka.model.doc.Param import org.jetbrains.dokka.model.doc.Text -import org.jetbrains.dokka.pages.ContentDRILink -import org.jetbrains.dokka.pages.ContentPage -import org.jetbrains.dokka.pages.MemberPageNode import org.jetbrains.dokka.base.testApi.testRunner.BaseAbstractTest +import org.jetbrains.dokka.pages.* import org.jetbrains.kotlin.utils.addToStdlib.firstIsInstanceOrNull import org.junit.jupiter.api.Test import utils.* @@ -1057,6 +1055,10 @@ class ContentForParamsTest : BaseAbstractTest() { table { group { +"abc" + check { + val textStyles = children.single { it is ContentText }.style + assertContains(textStyles, TextStyle.Underlined) + } group { group { +"comment to param" } } } } @@ -1110,14 +1112,26 @@ class ContentForParamsTest : BaseAbstractTest() { table { group { +"first" + check { + val textStyles = children.single { it is ContentText }.style + assertContains(textStyles, TextStyle.Underlined) + } group { group { +"comment to first param" } } } group { +"second" + check { + val textStyles = children.single { it is ContentText }.style + assertContains(textStyles, TextStyle.Underlined) + } group { group { +"comment to second param" } } } group { +"third" + check { + val textStyles = children.single { it is ContentText }.style + assertContains(textStyles, TextStyle.Underlined) + } group { group { +"comment to third param" } } } } |