aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin/format
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-02-27 20:08:31 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-02-27 20:08:31 +0300
commitbc71b31be28ed558e022babcf40ec1fd3bff923a (patch)
tree2c6520c7286432f22f3b804c8dea9147c6d26c42 /core/src/test/kotlin/format
parentef753c8a1b9f02d9f6f026d555d628fbb207c574 (diff)
downloaddokka-bc71b31be28ed558e022babcf40ec1fd3bff923a.tar.gz
dokka-bc71b31be28ed558e022babcf40ec1fd3bff923a.tar.bz2
dokka-bc71b31be28ed558e022babcf40ec1fd3bff923a.zip
Platform and version requirements for packages.
Fixed tests. Post review.
Diffstat (limited to 'core/src/test/kotlin/format')
-rw-r--r--core/src/test/kotlin/format/MarkdownFormatTest.kt8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/src/test/kotlin/format/MarkdownFormatTest.kt b/core/src/test/kotlin/format/MarkdownFormatTest.kt
index e87811ee..d21528b5 100644
--- a/core/src/test/kotlin/format/MarkdownFormatTest.kt
+++ b/core/src/test/kotlin/format/MarkdownFormatTest.kt
@@ -284,15 +284,19 @@ class MarkdownFormatTest {
}
}
- @Test fun multiplePlatformsPackagePlatformFromMembers() {
+ @Test fun multiplePlatformsPackagePlatformFromMembersIndex() {
val module = buildMultiplePlatforms("multiplatform/packagePlatformsFromMembers")
verifyModelOutput(module, ".md", "testdata/format/multiplatform/packagePlatformsFromMembers/multiplatform.index.kt") {
model, output ->
MarkdownFormatService(InMemoryLocationService, KotlinLanguageService(), listOf())
- .createOutputBuilder(output, tempLocation).appendNodes(model.members)
+ .createOutputBuilder(output, tempLocation).appendNodes(listOf(model))
}
}
+ @Test fun multiplePlatformsPackagePlatformFromMembers() {
+ verifyMultiplatformPackage(buildMultiplePlatforms("multiplatform/packagePlatformsFromMembers"), "multiplatform/packagePlatformsFromMembers")
+ }
+
private fun buildMultiplePlatforms(path: String): DocumentationModule {
val module = DocumentationModule("test")
val options = DocumentationOptions("", "html", generateIndexPages = false)