aboutsummaryrefslogtreecommitdiff
path: root/src/test/kotlin
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-02-09 20:22:17 +0100
committerRobert Jaros <rjaros@finn.pl>2018-02-09 20:22:17 +0100
commit9966f82dcbcf6df851ca088c4060ca8b1a981036 (patch)
tree20a3d6e95c214c5e9b6f0ce5678ae10fab017a44 /src/test/kotlin
parent4c55364efdc426faae10febda49ad40164fdab7a (diff)
downloadkvision-9966f82dcbcf6df851ca088c4060ca8b1a981036.tar.gz
kvision-9966f82dcbcf6df851ca088c4060ca8b1a981036.tar.bz2
kvision-9966f82dcbcf6df851ca088c4060ca8b1a981036.zip
Internet Explorer compatibility fix.0.0.2
Diffstat (limited to 'src/test/kotlin')
-rw-r--r--src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt b/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
index 32994fc3..56a33690 100644
--- a/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
+++ b/src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
@@ -23,8 +23,8 @@ package test.pl.treksoft.kvision
import org.w3c.dom.Element
import pl.treksoft.jquery.jQuery
-import pl.treksoft.kvision.panel.Root
import pl.treksoft.kvision.core.Widget
+import pl.treksoft.kvision.panel.Root
import kotlin.browser.document
interface TestSpec {
@@ -59,7 +59,7 @@ interface DomSpec : TestSpec {
override fun afterTest() {
val div = document.getElementById("pretest")
- div?.remove()
+ div?.let { jQuery(it).remove() }
jQuery(`object` = ".modal-backdrop").remove()
}