diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-05-16 18:06:56 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-05-16 18:09:27 +0300 |
commit | b3fa0d91fd466c3319f3a37a1cc5e82be2b89697 (patch) | |
tree | cf652ce23f0499a6f28f92176798de149ead8495 /core/src/test | |
parent | 7eb623f6f79f1d93d094cbb75ff057f0c0958f87 (diff) | |
download | dokka-b3fa0d91fd466c3319f3a37a1cc5e82be2b89697.tar.gz dokka-b3fa0d91fd466c3319f3a37a1cc5e82be2b89697.tar.bz2 dokka-b3fa0d91fd466c3319f3a37a1cc5e82be2b89697.zip |
Fix link resolution context for inherited docs
Fix #229
Diffstat (limited to 'core/src/test')
-rw-r--r-- | core/src/test/kotlin/format/MarkdownFormatTest.kt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/src/test/kotlin/format/MarkdownFormatTest.kt b/core/src/test/kotlin/format/MarkdownFormatTest.kt index f06f0e64..9e4c831d 100644 --- a/core/src/test/kotlin/format/MarkdownFormatTest.kt +++ b/core/src/test/kotlin/format/MarkdownFormatTest.kt @@ -423,6 +423,22 @@ class MarkdownFormatTest: FileGeneratorTestCase() { verifyMarkdownNode("enumRef") } + @Test fun inheritedLink() { + val filePath = "testdata/format/inheritedLink" + verifyOutput( + arrayOf( + contentRootFromPath("$filePath.kt"), + contentRootFromPath("$filePath.1.kt") + ), + ".md", + withJdk = true, + withKotlinRuntime = true, + includeNonPublic = false + ) { model, output -> + buildPagesAndReadInto(model.members.single { it.name == "p2" }.members.single().members, output) + } + } + private fun buildMultiplePlatforms(path: String): DocumentationModule { val module = DocumentationModule("test") |