aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/resources/multiplatform/basicMultiplatformTest
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-07-07 12:27:56 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-07-09 14:09:26 +0200
commit36c4d0d3f815539517ce422e2192d9a5d2970b78 (patch)
treef02f4c7cf62b98926536e38f8d5db694cb35471a /plugins/base/src/test/resources/multiplatform/basicMultiplatformTest
parent2ab810271d2b2dba7448a8cb2b53f0031e6ef40e (diff)
downloaddokka-36c4d0d3f815539517ce422e2192d9a5d2970b78.tar.gz
dokka-36c4d0d3f815539517ce422e2192d9a5d2970b78.tar.bz2
dokka-36c4d0d3f815539517ce422e2192d9a5d2970b78.zip
Add rendering signatures tests
Diffstat (limited to 'plugins/base/src/test/resources/multiplatform/basicMultiplatformTest')
-rw-r--r--plugins/base/src/test/resources/multiplatform/basicMultiplatformTest/jsMain/kotlin/Clock.kt7
-rw-r--r--plugins/base/src/test/resources/multiplatform/basicMultiplatformTest/jvmMain/kotlin/example/Clock.kt4
2 files changed, 11 insertions, 0 deletions
diff --git a/plugins/base/src/test/resources/multiplatform/basicMultiplatformTest/jsMain/kotlin/Clock.kt b/plugins/base/src/test/resources/multiplatform/basicMultiplatformTest/jsMain/kotlin/Clock.kt
index 967cffcd..51b8fdc6 100644
--- a/plugins/base/src/test/resources/multiplatform/basicMultiplatformTest/jsMain/kotlin/Clock.kt
+++ b/plugins/base/src/test/resources/multiplatform/basicMultiplatformTest/jsMain/kotlin/Clock.kt
@@ -9,8 +9,15 @@ import kotlin.js.Date
actual open class Clock {
actual fun getTime() = Date.now().toString()
fun onlyJsFunction(): Int = 42
+
+ /**
+ * JS implementation of getTimeInMillis
+ */
actual fun getTimesInMillis(): String = Date.now().toString()
+ /**
+ * JS custom kdoc
+ */
actual fun getYear(): String {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
diff --git a/plugins/base/src/test/resources/multiplatform/basicMultiplatformTest/jvmMain/kotlin/example/Clock.kt b/plugins/base/src/test/resources/multiplatform/basicMultiplatformTest/jvmMain/kotlin/example/Clock.kt
index 4d27d0a3..fec06207 100644
--- a/plugins/base/src/test/resources/multiplatform/basicMultiplatformTest/jvmMain/kotlin/example/Clock.kt
+++ b/plugins/base/src/test/resources/multiplatform/basicMultiplatformTest/jvmMain/kotlin/example/Clock.kt
@@ -25,6 +25,10 @@ actual open class Clock {
open fun getDayOfTheWeek(): String {
TODO("not implemented")
}
+
+ /**
+ * JVM custom kdoc
+ */
actual fun getYear(): String {
TODO("not implemented")
}