aboutsummaryrefslogtreecommitdiff
path: root/core/src/test
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2016-04-28 12:58:06 +0200
committerDmitry Jemerov <yole@jetbrains.com>2016-04-28 12:58:06 +0200
commit2e5b40d69e15c30474cf8564b08587f15ed8e383 (patch)
tree2682025e1a2688bedbd1ad4a3796ad16011ab345 /core/src/test
parent586748b30a21012774266dac3c8f2fa6fe3ab2b8 (diff)
downloaddokka-2e5b40d69e15c30474cf8564b08587f15ed8e383.tar.gz
dokka-2e5b40d69e15c30474cf8564b08587f15ed8e383.tar.bz2
dokka-2e5b40d69e15c30474cf8564b08587f15ed8e383.zip
correctly render Markdown in link text (KT-11791)
Diffstat (limited to 'core/src/test')
-rw-r--r--core/src/test/kotlin/format/HtmlFormatTest.kt13
1 files changed, 12 insertions, 1 deletions
diff --git a/core/src/test/kotlin/format/HtmlFormatTest.kt b/core/src/test/kotlin/format/HtmlFormatTest.kt
index 8045d38c..0fc56361 100644
--- a/core/src/test/kotlin/format/HtmlFormatTest.kt
+++ b/core/src/test/kotlin/format/HtmlFormatTest.kt
@@ -8,7 +8,7 @@ import org.jetbrains.kotlin.config.KotlinSourceRoot
import org.junit.Test
import java.io.File
-public class HtmlFormatTest {
+class HtmlFormatTest {
private val htmlService = HtmlFormatService(InMemoryLocationService, KotlinLanguageService(), HtmlTemplateService.default())
@Test fun classWithCompanionObject() {
@@ -159,5 +159,16 @@ public class HtmlFormatTest {
htmlService.appendNodes(tempLocation, output, model.members.single().members)
}
}
+
+ @Test fun markdownInLinks() {
+ verifyHtmlNode("markdownInLinks")
+ }
+
+ private fun verifyHtmlNode(fileName: String, withKotlinRuntime: Boolean = false) {
+ verifyOutput("testdata/format/$fileName.kt", ".html", withKotlinRuntime = withKotlinRuntime) { model, output ->
+ htmlService.appendNodes(tempLocation, output, model.members.single().members)
+ }
+ }
+
}