From 77bf290155cbfa6d389c4937bf2a5a34dd5b33bd Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 15 Nov 2019 09:07:05 +0100 Subject: Fix an issue with high CPU utilization in IntelliJ by introducing new onEvent extension function and changing the names of some style methods --- src/test/kotlin/test/pl/treksoft/kvision/core/WidgetSpec.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test') 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 { 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 { click = { } } widget.removeEventListeners() assertTrue("Element should not have any event listener") { widget.listeners.size == 0 } } -- cgit