aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/signatures
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat.beresnev@jetbrains.com>2022-09-21 13:14:51 +0200
committerGitHub <noreply@github.com>2022-09-21 13:14:51 +0200
commit879d4f2652d528f20c95d5bb17899d6cb10c5e85 (patch)
tree27b2ee08207aeba43a58bb7dd9a26315f4470d4d /plugins/base/src/test/kotlin/signatures
parente49726f2b9a61278ba3ced9eb2438d925f5d364c (diff)
downloaddokka-879d4f2652d528f20c95d5bb17899d6cb10c5e85.tar.gz
dokka-879d4f2652d528f20c95d5bb17899d6cb10c5e85.tar.bz2
dokka-879d4f2652d528f20c95d5bb17899d6cb10c5e85.zip
Wrap long signatures dynamically based on client width (#2659)
Diffstat (limited to 'plugins/base/src/test/kotlin/signatures')
-rw-r--r--plugins/base/src/test/kotlin/signatures/SignatureTest.kt47
1 files changed, 0 insertions, 47 deletions
diff --git a/plugins/base/src/test/kotlin/signatures/SignatureTest.kt b/plugins/base/src/test/kotlin/signatures/SignatureTest.kt
index 61c9556e..13e103b4 100644
--- a/plugins/base/src/test/kotlin/signatures/SignatureTest.kt
+++ b/plugins/base/src/test/kotlin/signatures/SignatureTest.kt
@@ -850,53 +850,6 @@ class SignatureTest : BaseAbstractTest() {
}
@Test
- fun `fun with single param should NOT have any wrapped or indented parameters`() {
- val source = source("fun assertNoIndent(int: Int): String = \"\"")
- val writerPlugin = TestOutputWriterPlugin()
-
- testInline(
- source,
- configuration,
- pluginOverrides = listOf(writerPlugin)
- ) {
- renderingStage = { _, _ ->
- val signature = writerPlugin.writer.renderedContent("root/example/assert-no-indent.html").firstSignature()
- signature.match(
- "fun", A("assertNoIndent"), "(", Parameters(
- Parameter("int: ", A("Int")),
- ), "): ", A("String"),
- ignoreSpanWithTokenStyle = true
- )
- assertFalse { signature.select("span.parameters").single().hasClass("wrapped") }
- assertFalse { signature.select("span.parameters > span.parameter").single().hasClass("indented") }
- }
- }
- }
-
- @Test
- fun `fun with many params should have wrapped and indented parameters`() {
- val source = source("fun assertParamsIndent(int: Int, string: String, long: Long): String = \"\"")
- val writerPlugin = TestOutputWriterPlugin()
-
- testInline(
- source,
- configuration,
- pluginOverrides = listOf(writerPlugin)
- ) {
- renderingStage = { _, _ ->
- writerPlugin.writer.renderedContent("root/example/assert-params-indent.html").firstSignature().match(
- "fun", A("assertParamsIndent"), "(", Parameters(
- Parameter("int: ", A("Int"), ",").withClasses("indented"),
- Parameter("string: ", A("String"), ",").withClasses("indented"),
- Parameter("long: ", A("Long")).withClasses("indented")
- ).withClasses("wrapped"), "): ", A("String"),
- ignoreSpanWithTokenStyle = true
- )
- }
- }
- }
-
- @Test
fun `const val with default values`() {
val source = source("const val simpleVal = 1")
val writerPlugin = TestOutputWriterPlugin()