aboutsummaryrefslogtreecommitdiff
path: root/examples/showcase/src/test/kotlin
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-02-03 23:21:46 +0100
committerRobert Jaros <rjaros@finn.pl>2018-02-03 23:21:46 +0100
commit9665fe692681bc958e55d00cc0d0b238b7aee694 (patch)
treedd222dec725f64b8065a09311d9b034e9b9751b3 /examples/showcase/src/test/kotlin
parent180528f620e53e4a828d6f4d427ce83817572f44 (diff)
downloadkvision-9665fe692681bc958e55d00cc0d0b238b7aee694.tar.gz
kvision-9665fe692681bc958e55d00cc0d0b238b7aee694.tar.bz2
kvision-9665fe692681bc958e55d00cc0d0b238b7aee694.zip
Refactoring for kdoc API documentation with dokka
Diffstat (limited to 'examples/showcase/src/test/kotlin')
-rw-r--r--examples/showcase/src/test/kotlin/test/com/example/ShowcaseSpec.kt19
-rw-r--r--examples/showcase/src/test/kotlin/test/com/example/TestUtil.kt32
2 files changed, 0 insertions, 51 deletions
diff --git a/examples/showcase/src/test/kotlin/test/com/example/ShowcaseSpec.kt b/examples/showcase/src/test/kotlin/test/com/example/ShowcaseSpec.kt
deleted file mode 100644
index 64d46b18..00000000
--- a/examples/showcase/src/test/kotlin/test/com/example/ShowcaseSpec.kt
+++ /dev/null
@@ -1,19 +0,0 @@
-package test.com.example
-
-import com.example.Showcase
-import kotlin.browser.document
-import kotlin.test.Test
-import kotlin.test.assertTrue
-
-class ShowcaseSpec : DomSpec {
-
- @Test
- fun render() {
- run {
- Showcase().start(mapOf())
- val element = document.getElementById("showcase")
- assertTrue(true, "True"
- )
- }
- }
-}
diff --git a/examples/showcase/src/test/kotlin/test/com/example/TestUtil.kt b/examples/showcase/src/test/kotlin/test/com/example/TestUtil.kt
deleted file mode 100644
index 06d25a26..00000000
--- a/examples/showcase/src/test/kotlin/test/com/example/TestUtil.kt
+++ /dev/null
@@ -1,32 +0,0 @@
-package test.com.example
-
-import pl.treksoft.jquery.jQuery
-import kotlin.browser.document
-
-interface TestSpec {
- fun beforeTest()
-
- fun afterTest()
-
- fun run(code: () -> Unit) {
- beforeTest()
- code()
- afterTest()
- }
-}
-
-interface DomSpec : TestSpec {
-
- override fun beforeTest() {
- val fixture = "<div style=\"display: none\" id=\"pretest\">" +
- "<div id=\"showcase\"></div></div>"
- document.body?.insertAdjacentHTML("afterbegin", fixture)
- }
-
- override fun afterTest() {
- val div = document.getElementById("pretest")
- div?.remove()
- jQuery(`object` = ".modal-backdrop").remove()
- }
-
-}