diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-11-15 09:07:05 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-11-15 09:07:05 +0100 |
commit | 77bf290155cbfa6d389c4937bf2a5a34dd5b33bd (patch) | |
tree | e558ab18360da4d1685dc204ae661c4357842e41 /src/test/kotlin | |
parent | 822ee9a8d0efd5bcacacd7dc5c1c35b549ed9c34 (diff) | |
download | kvision-77bf290155cbfa6d389c4937bf2a5a34dd5b33bd.tar.gz kvision-77bf290155cbfa6d389c4937bf2a5a34dd5b33bd.tar.bz2 kvision-77bf290155cbfa6d389c4937bf2a5a34dd5b33bd.zip |
Fix an issue with high CPU utilization in IntelliJ by introducing new onEvent extension function and changing the names of some style methods
Diffstat (limited to 'src/test/kotlin')
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/core/WidgetSpec.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/kotlin/test/pl/treksoft/kvision/core/WidgetSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/core/WidgetSpec.kt index 6b9be23d..59f5f8e0 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/core/WidgetSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/core/WidgetSpec.kt @@ -95,7 +95,7 @@ class WidgetSpec : WSpec { @Test fun setEventListener() { runW { widget, _ -> - widget.setEventListener { click = { } } + widget.setEventListener<Widget> { click = { } } assertTrue("Element should have an event listener") { widget.listeners.size == 1 } } } @@ -103,7 +103,7 @@ class WidgetSpec : WSpec { @Test fun removeEventListener() { runW { widget, _ -> - widget.setEventListener { click = { } } + widget.setEventListener<Widget> { click = { } } widget.removeEventListeners() assertTrue("Element should not have any event listener") { widget.listeners.size == 0 } } |