diff options
author | aleksZubakov <aleks.zubakov@gmail.com> | 2018-07-12 20:23:02 +0300 |
---|---|---|
committer | aleksZubakov <aleks.zubakov@gmail.com> | 2018-07-12 20:23:02 +0300 |
commit | 742be4ef7c024a5ea6023fb684cd24d1898f37e4 (patch) | |
tree | 34fc44ef7ee5afdb7a153367d80872f74ace4937 /core/src/test/kotlin/issues | |
parent | b4fcc57ab7f335459131ce105924eeaa5fa77375 (diff) | |
download | dokka-742be4ef7c024a5ea6023fb684cd24d1898f37e4.tar.gz dokka-742be4ef7c024a5ea6023fb684cd24d1898f37e4.tar.bz2 dokka-742be4ef7c024a5ea6023fb684cd24d1898f37e4.zip |
Test refactoring, add common platform tests
Diffstat (limited to 'core/src/test/kotlin/issues')
-rw-r--r-- | core/src/test/kotlin/issues/IssuesTest.kt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/core/src/test/kotlin/issues/IssuesTest.kt b/core/src/test/kotlin/issues/IssuesTest.kt index 58b3a2d2..da5acd6e 100644 --- a/core/src/test/kotlin/issues/IssuesTest.kt +++ b/core/src/test/kotlin/issues/IssuesTest.kt @@ -2,18 +2,19 @@ package issues import org.jetbrains.dokka.DocumentationNode import org.jetbrains.dokka.NodeKind +import org.jetbrains.dokka.Platform import org.jetbrains.dokka.tests.ModelConfig import org.jetbrains.dokka.tests.checkSourceExistsAndVerifyModel import org.junit.Test import kotlin.test.assertEquals - -class IssuesTest { +abstract class BaseIssuesTest(val analysisPlatform: Platform) { + val defaultModelConfig = ModelConfig(analysisPlatform = analysisPlatform) @Test fun errorClasses() { checkSourceExistsAndVerifyModel("testdata/issues/errorClasses.kt", - modelConfig = ModelConfig(withJdk = true, withKotlinRuntime = true)) { model -> + modelConfig = ModelConfig(analysisPlatform = analysisPlatform, withJdk = true, withKotlinRuntime = true)) { model -> val cls = model.members.single().members.single() fun DocumentationNode.returnType() = this.details.find { it.kind == NodeKind.Type }?.name @@ -27,3 +28,7 @@ class IssuesTest { } } } + +class JSIssuesTest: BaseIssuesTest(Platform.js) +class JVMIssuesTest: BaseIssuesTest(Platform.jvm) +class CommonIssuesTest: BaseIssuesTest(Platform.common)
\ No newline at end of file |