diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2022-07-27 10:25:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 10:25:16 +0200 |
commit | f4d2bf40e7b7e62aeb27bf0f1cabe53e35e68fd2 (patch) | |
tree | 4824ee6bdac39f6313d7e3d78f9b51df92737eae /plugins/kotlin-as-java/src/test/kotlin | |
parent | 838ec1b30de400f83accfbbf1b28920c0b4ae237 (diff) | |
download | dokka-f4d2bf40e7b7e62aeb27bf0f1cabe53e35e68fd2.tar.gz dokka-f4d2bf40e7b7e62aeb27bf0f1cabe53e35e68fd2.tar.bz2 dokka-f4d2bf40e7b7e62aeb27bf0f1cabe53e35e68fd2.zip |
Disable copy button for signatures (#2577)
* Disable copy button for signatures
Diffstat (limited to 'plugins/kotlin-as-java/src/test/kotlin')
-rw-r--r-- | plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaPluginTest.kt | 12 | ||||
-rw-r--r-- | plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaSignatureTest.kt | 5 |
2 files changed, 8 insertions, 9 deletions
diff --git a/plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaPluginTest.kt b/plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaPluginTest.kt index b77dc23c..6b7a2ae0 100644 --- a/plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaPluginTest.kt +++ b/plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaPluginTest.kt @@ -333,7 +333,7 @@ class KotlinAsJavaPluginTest : BaseAbstractTest() { writerPlugin.writer.renderedContent("root/kotlinAsJavaPlugin/-a-b-c/some-fun.html").firstSignature().match( "public final ", A("Integer"), A("someFun"), "(", Parameters( Parameter(A("Integer"), "xd") - ), ")", Span(), ignoreSpanWithTokenStyle = true + ), ")", ignoreSpanWithTokenStyle = true ) } } @@ -372,7 +372,7 @@ class KotlinAsJavaPluginTest : BaseAbstractTest() { writerPlugin.writer.renderedContent("root/kotlinAsJavaPlugin/-a-b-c/some-fun.html").firstSignature().match( "public final ", A("Integer"), A("someFun"), "(", Parameters( Parameter(A("Map"), "<", A("String"), ", ", A("Integer"), "> xd"), - ), ")", Span(), ignoreSpanWithTokenStyle = true + ), ")", ignoreSpanWithTokenStyle = true ) } } @@ -438,7 +438,7 @@ class KotlinAsJavaPluginTest : BaseAbstractTest() { writerPlugin.writer.renderedContent("root/kotlinAsJavaPlugin/-test-kt/sample.html").firstSignature().match( "public final static ", A("String"), A("sample"), "(", Parameters( Parameter(A("Integer"), "a"), - ), ")", Span(), ignoreSpanWithTokenStyle = true + ), ")", ignoreSpanWithTokenStyle = true ) } } @@ -483,7 +483,7 @@ class KotlinAsJavaPluginTest : BaseAbstractTest() { writerPlugin.writer.renderedContent("root/kotlinAsJavaPlugin/-test/-test.html").firstSignature().match( A("Test"), A("Test"), "(", Parameters( Parameter(A("Integer"), "xd") - ), ")", Span(), ignoreSpanWithTokenStyle = true + ), ")", ignoreSpanWithTokenStyle = true ) } } @@ -530,7 +530,7 @@ class KotlinAsJavaPluginTest : BaseAbstractTest() { Parameter(A("Integer"), "xd,").withClasses("indented"), Parameter(A("Long"), "l,").withClasses("indented"), Parameter(A("String"), "s").withClasses("indented"), - ).withClasses("wrapped"), ")", Span(), ignoreSpanWithTokenStyle = true + ).withClasses("wrapped"), ")", ignoreSpanWithTokenStyle = true ) } } @@ -623,7 +623,7 @@ class KotlinAsJavaPluginTest : BaseAbstractTest() { writerPlugin.writer.renderedContent(methodDocumentation) .firstSignature() .match( - "$accessModifier void ", A(methodName), "()", Span(), + "$accessModifier void ", A(methodName), "()", ignoreSpanWithTokenStyle = true ) } diff --git a/plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaSignatureTest.kt b/plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaSignatureTest.kt index 5ce3ac41..46e71d87 100644 --- a/plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaSignatureTest.kt +++ b/plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaSignatureTest.kt @@ -51,7 +51,7 @@ class KotlinAsJavaSignatureTest : BaseAbstractTest() { Span(Span(), " x, "), Span(Span(), " y") ), - ")", Span(), + ")", ignoreSpanWithTokenStyle = true ) } @@ -106,7 +106,6 @@ class KotlinAsJavaSignatureTest : BaseAbstractTest() { "public final class ", A("Clazz"), // <@OnTypeParameter() T extends @OnType() Object> "<", Span("@", A("OnTypeParameter"), "() "), "T extends ", Span("@", A("OnType"), "() "), A("Object"), ">", - Span(), ignoreSpanWithTokenStyle = true ) @@ -124,7 +123,7 @@ class KotlinAsJavaSignatureTest : BaseAbstractTest() { Span( A("String"), "str2" ) - ), ")", Span(), + ), ")", ignoreSpanWithTokenStyle = true ) } |