diff options
author | Dmitry Jemerov <intelliyole@gmail.com> | 2014-12-30 16:34:47 +0100 |
---|---|---|
committer | Dmitry Jemerov <intelliyole@gmail.com> | 2014-12-30 16:34:47 +0100 |
commit | 5f47bc17630ef1457b36054dc8b19011d9d14132 (patch) | |
tree | 876215d35aa29f49d25645ad92edfe190f3364e6 /test/src/format | |
parent | 7db96f8da4317cd290ccc9f988c534f10923dbbb (diff) | |
parent | 3fc3e33a0eff0198ed89cc94197cb21653bf1ca2 (diff) | |
download | dokka-5f47bc17630ef1457b36054dc8b19011d9d14132.tar.gz dokka-5f47bc17630ef1457b36054dc8b19011d9d14132.tar.bz2 dokka-5f47bc17630ef1457b36054dc8b19011d9d14132.zip |
Merge pull request #8 from orangy/class-object
Include class object properties and functions in the list of class members
Diffstat (limited to 'test/src/format')
-rw-r--r-- | test/src/format/HtmlFormatTest.kt | 27 | ||||
-rw-r--r-- | test/src/format/MarkdownFormatTest.kt | 8 |
2 files changed, 34 insertions, 1 deletions
diff --git a/test/src/format/HtmlFormatTest.kt b/test/src/format/HtmlFormatTest.kt new file mode 100644 index 00000000..881a7828 --- /dev/null +++ b/test/src/format/HtmlFormatTest.kt @@ -0,0 +1,27 @@ +package org.jetbrains.dokka.tests + +import org.jetbrains.dokka.KotlinLanguageService +import org.junit.Test +import org.jetbrains.dokka.HtmlFormatService + +public class HtmlFormatTest { + private val htmlService = HtmlFormatService(InMemoryLocationService, KotlinLanguageService()) + + Test fun classWithClassObject() { + verifyOutput("test/data/format/classWithClassObject.kt", ".html") { model, output -> + htmlService.appendNodes(tempLocation, output, model.members.single().members) + } + } + + Test fun htmlEscaping() { + verifyOutput("test/data/format/htmlEscaping.kt", ".html") { model, output -> + htmlService.appendNodes(tempLocation, output, model.members.single().members) + } + } + + Test fun overloads() { + verifyOutput("test/data/format/overloads.kt", ".html") { model, output -> + htmlService.appendNodes(tempLocation, output, model.members) + } + } +} diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt index beb727da..5cdfb8b5 100644 --- a/test/src/format/MarkdownFormatTest.kt +++ b/test/src/format/MarkdownFormatTest.kt @@ -9,7 +9,13 @@ public class MarkdownFormatTest { private val markdownService = MarkdownFormatService(InMemoryLocationService, KotlinLanguageService()) Test fun emptyDescription() { - verifyOutput("test/data/format/emptyDescription.kt") { model, output -> + verifyOutput("test/data/format/emptyDescription.kt", ".md") { model, output -> + markdownService.appendNodes(tempLocation, output, model.members.single().members) + } + } + + Test fun classWithClassObject() { + verifyOutput("test/data/format/classWithClassObject.kt", ".md") { model, output -> markdownService.appendNodes(tempLocation, output, model.members.single().members) } } |