aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin/format
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-12-05 18:16:40 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-12-05 18:16:40 +0300
commit1bd0f642248e09cfa95fa19bf5a38316606401a2 (patch)
treeff25828b5ba650ba95a47b716cfa61e920b8f19b /core/src/test/kotlin/format
parentb209ddcfc2d532f4dc5e508e00d89335fdb15caa (diff)
downloaddokka-1bd0f642248e09cfa95fa19bf5a38316606401a2.tar.gz
dokka-1bd0f642248e09cfa95fa19bf5a38316606401a2.tar.bz2
dokka-1bd0f642248e09cfa95fa19bf5a38316606401a2.zip
Uncomment and fix some special case tests
Diffstat (limited to 'core/src/test/kotlin/format')
-rw-r--r--core/src/test/kotlin/format/MarkdownFormatTest.kt10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/src/test/kotlin/format/MarkdownFormatTest.kt b/core/src/test/kotlin/format/MarkdownFormatTest.kt
index b0e2a985..f60969fc 100644
--- a/core/src/test/kotlin/format/MarkdownFormatTest.kt
+++ b/core/src/test/kotlin/format/MarkdownFormatTest.kt
@@ -299,8 +299,9 @@ class MarkdownFormatTest: FileGeneratorTestCase() {
@Test fun multiplePlatformsImplied() {
val module = buildMultiplePlatforms("multiplatform/implied")
verifyModelOutput(module, ".md", "testdata/format/multiplatform/implied/foo.kt") { model, output ->
-// MarkdownFormatService(InMemoryLocationService, KotlinLanguageService(), listOf("JVM", "JS"))
-// .createOutputBuilder(output, tempLocation).appendNodes(model.members.single().members)
+ val service = MarkdownFormatService(fileGenerator, KotlinLanguageService(), listOf("JVM", "JS"))
+ fileGenerator.formatService = service
+ buildPagesAndReadInto(model.members.single().members, output)
}
}
@@ -442,8 +443,9 @@ class MarkdownFormatTest: FileGeneratorTestCase() {
private fun verifyMultiplatformIndex(module: DocumentationModule, path: String) {
verifyModelOutput(module, ".md", "testdata/format/$path/multiplatform.index.kt") {
model, output ->
-// MarkdownFormatService(InMemoryLocationService, KotlinLanguageService(), listOf())
-// .createOutputBuilder(output, tempLocation).appendNodes(listOf(model))
+ val service = MarkdownFormatService(fileGenerator, KotlinLanguageService(), listOf())
+ fileGenerator.formatService = service
+ buildPagesAndReadInto(listOf(model), output)
}
}