diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2019-08-27 17:59:30 +0200 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-08-27 17:59:30 +0200 |
commit | 61a3587abeb35908b09e169bb55e2a9f1890c195 (patch) | |
tree | dbd17703b7fa98ba272ce21c932a8c55609354d0 /core/src/test | |
parent | fc93d14549ca4d14f1f45fbe143d87ac6dc2fdd9 (diff) | |
download | dokka-61a3587abeb35908b09e169bb55e2a9f1890c195.tar.gz dokka-61a3587abeb35908b09e169bb55e2a9f1890c195.tar.bz2 dokka-61a3587abeb35908b09e169bb55e2a9f1890c195.zip |
Fix for missing colon in links to external sites, https://github.com/Kotlin/dokka/issues/405
Diffstat (limited to 'core/src/test')
-rw-r--r-- | core/src/test/kotlin/model/LinkTest.kt | 10 |
1 files changed, 10 insertions, 0 deletions
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()) { |