diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-02-16 21:28:16 +0300 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2017-02-23 11:20:13 +0100 |
commit | 7fa258873eab770577879e9721c0864449ba1114 (patch) | |
tree | fefbab3c102c00aa412dff4341c8160714f0c309 /core/src/test/kotlin/format | |
parent | 2bd8bdf9dc0a8e48ce558b2eed0c8e8fd4883902 (diff) | |
download | dokka-7fa258873eab770577879e9721c0864449ba1114.tar.gz dokka-7fa258873eab770577879e9721c0864449ba1114.tar.bz2 dokka-7fa258873eab770577879e9721c0864449ba1114.zip |
Dokka now can detect and recognize SinceKotlin
Diffstat (limited to 'core/src/test/kotlin/format')
-rw-r--r-- | core/src/test/kotlin/format/HtmlFormatTest.kt | 4 | ||||
-rw-r--r-- | core/src/test/kotlin/format/MarkdownFormatTest.kt | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/core/src/test/kotlin/format/HtmlFormatTest.kt b/core/src/test/kotlin/format/HtmlFormatTest.kt index 4b4eff59..1816c075 100644 --- a/core/src/test/kotlin/format/HtmlFormatTest.kt +++ b/core/src/test/kotlin/format/HtmlFormatTest.kt @@ -138,6 +138,10 @@ class HtmlFormatTest { verifyHtmlNode("functionalTypeWithNamedParameters") } + @Test fun sinceKotlin() { + verifyHtmlNode("sinceKotlin") + } + private fun verifyHtmlNode(fileName: String, withKotlinRuntime: Boolean = false) { verifyHtmlNodes(fileName, withKotlinRuntime) { model -> model.members.single().members } } diff --git a/core/src/test/kotlin/format/MarkdownFormatTest.kt b/core/src/test/kotlin/format/MarkdownFormatTest.kt index f870d898..4dd01a20 100644 --- a/core/src/test/kotlin/format/MarkdownFormatTest.kt +++ b/core/src/test/kotlin/format/MarkdownFormatTest.kt @@ -4,7 +4,6 @@ import org.jetbrains.dokka.DocumentationModule import org.jetbrains.dokka.DocumentationNode import org.jetbrains.dokka.KotlinLanguageService import org.jetbrains.dokka.MarkdownFormatService -import org.junit.Ignore import org.junit.Test class MarkdownFormatTest { @@ -241,6 +240,11 @@ class MarkdownFormatTest { verifyMarkdownPackage("suspendParam") } + @Test fun sinceKotlin() { + verifyMarkdownNode("sinceKotlin") + verifyMarkdownPackage("sinceKotlin") + } + private fun verifyMarkdownPackage(fileName: String, withKotlinRuntime: Boolean = false) { verifyOutput("testdata/format/$fileName.kt", ".package.md", withKotlinRuntime = withKotlinRuntime) { model, output -> markdownService.createOutputBuilder(output, tempLocation).appendNodes(model.members) |