aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kvision-modules/kvision-bootstrap/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt1
-rw-r--r--kvision-modules/kvision-chart/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt1
-rw-r--r--kvision-modules/kvision-datacontainer/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt1
-rw-r--r--kvision-modules/kvision-datetime/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt1
-rw-r--r--kvision-modules/kvision-redux/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt1
-rw-r--r--kvision-modules/kvision-richtext/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt1
-rw-r--r--kvision-modules/kvision-select/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt1
-rw-r--r--kvision-modules/kvision-spinner/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt1
-rw-r--r--kvision-modules/kvision-upload/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt1
-rw-r--r--src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt2
-rw-r--r--src/test/kotlin/test/pl/treksoft/kvision/core/StyleSpec.kt4
11 files changed, 10 insertions, 5 deletions
diff --git a/kvision-modules/kvision-bootstrap/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt b/kvision-modules/kvision-bootstrap/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
index 5f55a1f8..2fc0320a 100644
--- a/kvision-modules/kvision-bootstrap/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
+++ b/kvision-modules/kvision-bootstrap/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
@@ -65,6 +65,7 @@ interface DomSpec : TestSpec {
val div = document.getElementById("pretest")
div?.let { jQuery(it).remove() }
jQuery(".modal-backdrop").remove()
+ Root.shutdown()
}
fun assertEqualsHtml(expected: String?, actual: String?, message: String?) {
diff --git a/kvision-modules/kvision-chart/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt b/kvision-modules/kvision-chart/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
index 9d86766c..37d7a9df 100644
--- a/kvision-modules/kvision-chart/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
+++ b/kvision-modules/kvision-chart/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
@@ -63,6 +63,7 @@ interface DomSpec : TestSpec {
val div = document.getElementById("pretest")
div?.let { jQuery(it).remove() }
jQuery(".modal-backdrop").remove()
+ Root.shutdown()
}
fun assertEqualsHtml(expected: String?, actual: String?, message: String?) {
diff --git a/kvision-modules/kvision-datacontainer/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt b/kvision-modules/kvision-datacontainer/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
index 9d86766c..37d7a9df 100644
--- a/kvision-modules/kvision-datacontainer/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
+++ b/kvision-modules/kvision-datacontainer/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
@@ -63,6 +63,7 @@ interface DomSpec : TestSpec {
val div = document.getElementById("pretest")
div?.let { jQuery(it).remove() }
jQuery(".modal-backdrop").remove()
+ Root.shutdown()
}
fun assertEqualsHtml(expected: String?, actual: String?, message: String?) {
diff --git a/kvision-modules/kvision-datetime/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt b/kvision-modules/kvision-datetime/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
index 9d86766c..37d7a9df 100644
--- a/kvision-modules/kvision-datetime/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
+++ b/kvision-modules/kvision-datetime/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
@@ -63,6 +63,7 @@ interface DomSpec : TestSpec {
val div = document.getElementById("pretest")
div?.let { jQuery(it).remove() }
jQuery(".modal-backdrop").remove()
+ Root.shutdown()
}
fun assertEqualsHtml(expected: String?, actual: String?, message: String?) {
diff --git a/kvision-modules/kvision-redux/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt b/kvision-modules/kvision-redux/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
index 9d86766c..37d7a9df 100644
--- a/kvision-modules/kvision-redux/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
+++ b/kvision-modules/kvision-redux/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
@@ -63,6 +63,7 @@ interface DomSpec : TestSpec {
val div = document.getElementById("pretest")
div?.let { jQuery(it).remove() }
jQuery(".modal-backdrop").remove()
+ Root.shutdown()
}
fun assertEqualsHtml(expected: String?, actual: String?, message: String?) {
diff --git a/kvision-modules/kvision-richtext/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt b/kvision-modules/kvision-richtext/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
index 9d86766c..37d7a9df 100644
--- a/kvision-modules/kvision-richtext/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
+++ b/kvision-modules/kvision-richtext/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
@@ -63,6 +63,7 @@ interface DomSpec : TestSpec {
val div = document.getElementById("pretest")
div?.let { jQuery(it).remove() }
jQuery(".modal-backdrop").remove()
+ Root.shutdown()
}
fun assertEqualsHtml(expected: String?, actual: String?, message: String?) {
diff --git a/kvision-modules/kvision-select/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt b/kvision-modules/kvision-select/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
index 9d86766c..37d7a9df 100644
--- a/kvision-modules/kvision-select/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
+++ b/kvision-modules/kvision-select/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
@@ -63,6 +63,7 @@ interface DomSpec : TestSpec {
val div = document.getElementById("pretest")
div?.let { jQuery(it).remove() }
jQuery(".modal-backdrop").remove()
+ Root.shutdown()
}
fun assertEqualsHtml(expected: String?, actual: String?, message: String?) {
diff --git a/kvision-modules/kvision-spinner/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt b/kvision-modules/kvision-spinner/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
index 9d86766c..37d7a9df 100644
--- a/kvision-modules/kvision-spinner/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
+++ b/kvision-modules/kvision-spinner/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
@@ -63,6 +63,7 @@ interface DomSpec : TestSpec {
val div = document.getElementById("pretest")
div?.let { jQuery(it).remove() }
jQuery(".modal-backdrop").remove()
+ Root.shutdown()
}
fun assertEqualsHtml(expected: String?, actual: String?, message: String?) {
diff --git a/kvision-modules/kvision-upload/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt b/kvision-modules/kvision-upload/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
index 9d86766c..37d7a9df 100644
--- a/kvision-modules/kvision-upload/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
+++ b/kvision-modules/kvision-upload/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
@@ -63,6 +63,7 @@ interface DomSpec : TestSpec {
val div = document.getElementById("pretest")
div?.let { jQuery(it).remove() }
jQuery(".modal-backdrop").remove()
+ Root.shutdown()
}
fun assertEqualsHtml(expected: String?, actual: String?, message: String?) {
diff --git a/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt b/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
index f82dbcd3..37d7a9df 100644
--- a/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
+++ b/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
@@ -63,7 +63,7 @@ interface DomSpec : TestSpec {
val div = document.getElementById("pretest")
div?.let { jQuery(it).remove() }
jQuery(".modal-backdrop").remove()
- Root.roots.forEach { it.dispose() }
+ Root.shutdown()
}
fun assertEqualsHtml(expected: String?, actual: String?, message: String?) {
diff --git a/src/test/kotlin/test/pl/treksoft/kvision/core/StyleSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/core/StyleSpec.kt
index bfcf5208..bdb93744 100644
--- a/src/test/kotlin/test/pl/treksoft/kvision/core/StyleSpec.kt
+++ b/src/test/kotlin/test/pl/treksoft/kvision/core/StyleSpec.kt
@@ -24,7 +24,6 @@ package test.pl.treksoft.kvision.core
import pl.treksoft.kvision.core.Col
import pl.treksoft.kvision.core.Color
import pl.treksoft.kvision.core.Overflow
-import pl.treksoft.kvision.core.Style
import pl.treksoft.kvision.core.Style.Companion.style
import pl.treksoft.kvision.core.Widget.Companion.widget
import pl.treksoft.kvision.panel.Root
@@ -53,7 +52,6 @@ class StyleSpec : DomSpec {
element?.innerHTML,
"Should render correct style element"
)
- Style.styles.clear()
}
}
@@ -75,7 +73,6 @@ class StyleSpec : DomSpec {
element?.innerHTML,
"Should render correct style element with custom class name"
)
- Style.styles.clear()
}
}
@@ -104,7 +101,6 @@ class StyleSpec : DomSpec {
element?.innerHTML,
"Should render correct child style class name"
)
- Style.styles.clear()
}
}
} \ No newline at end of file