Tiem Song | e1dd512 | 2019-07-03 14:16:39 -0700 | [diff] [blame^] | 1 | package org.jetbrains.dokka.tests |
| 2 | |
| 3 | import org.jetbrains.dokka.DokkaConsoleLogger |
| 4 | import org.jetbrains.dokka.KotlinLanguageService |
| 5 | import org.jetbrains.dokka.KotlinWebsiteRunnableSamplesFormatService |
| 6 | import org.junit.Ignore |
| 7 | import org.junit.Test |
| 8 | |
| 9 | @Ignore |
| 10 | class KotlinWebSiteRunnableSamplesFormatTest { |
| 11 | // private val kwsService = KotlinWebsiteRunnableSamplesFormatService(InMemoryLocationService, KotlinLanguageService(), listOf(), DokkaConsoleLogger) |
| 12 | // |
| 13 | // |
| 14 | // @Test fun dropImport() { |
| 15 | // verifyKWSNodeByName("dropImport", "foo") |
| 16 | // } |
| 17 | // |
| 18 | // @Test fun sample() { |
| 19 | // verifyKWSNodeByName("sample", "foo") |
| 20 | // } |
| 21 | // |
| 22 | // @Test fun sampleWithAsserts() { |
| 23 | // verifyKWSNodeByName("sampleWithAsserts", "a") |
| 24 | // } |
| 25 | // |
| 26 | // @Test fun newLinesInSamples() { |
| 27 | // verifyKWSNodeByName("newLinesInSamples", "foo") |
| 28 | // } |
| 29 | // |
| 30 | // @Test fun newLinesInImportList() { |
| 31 | // verifyKWSNodeByName("newLinesInImportList", "foo") |
| 32 | // } |
| 33 | // |
| 34 | // private fun verifyKWSNodeByName(fileName: String, name: String) { |
| 35 | // verifyOutput("testdata/format/website-samples/$fileName.kt", ".md", format = "kotlin-website-samples") { model, output -> |
| 36 | // kwsService.createOutputBuilder(output, tempLocation).appendNodes(model.members.single().members.filter { it.name == name }) |
| 37 | // } |
| 38 | // } |
| 39 | } |