From 61a3587abeb35908b09e169bb55e2a9f1890c195 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Tue, 27 Aug 2019 17:59:30 +0200 Subject: Fix for missing colon in links to external sites, https://github.com/Kotlin/dokka/issues/405 --- core/src/test/kotlin/model/LinkTest.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/src/test') diff --git a/core/src/test/kotlin/model/LinkTest.kt b/core/src/test/kotlin/model/LinkTest.kt index 9b2f9f0d..6526a4db 100644 --- a/core/src/test/kotlin/model/LinkTest.kt +++ b/core/src/test/kotlin/model/LinkTest.kt @@ -19,6 +19,16 @@ abstract class BaseLinkTest(val analysisPlatform: Platform) { } } + @Test fun linkToExternalSite() { + checkSourceExistsAndVerifyModel("testdata/links/linkToExternalSite.kt", defaultModelConfig) { model -> + with(model.members.single().members.single()) { + assertEquals("Foo", name) + assertEquals(NodeKind.Class, kind) + assertEquals("This is link to http://example.com/#example", content.summary.toTestString()) + } + } + } + @Test fun linkToMember() { checkSourceExistsAndVerifyModel("testdata/links/linkToMember.kt", defaultModelConfig) { model -> with(model.members.single().members.single()) { -- cgit