Browse Source

Fix typo: handeled -> handled (#822)

pull/845/head
Eric Pabst 3 years ago committed by GitHub
parent
commit
f80715aee7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      web/core/src/jsTest/kotlin/elements/EventTests.kt

24
web/core/src/jsTest/kotlin/elements/EventTests.kt

@ -18,12 +18,12 @@ class EventTests {
@Test
fun buttonClickHandled() = runTest {
var handeled = false
var handled = false
composition {
Button(
{
onClick { handeled = true }
onClick { handled = true }
}
) {}
}
@ -33,18 +33,18 @@ class EventTests {
val btn = root.firstChild as HTMLElement
btn.dispatchEvent(MouseEvent("click"))
assertTrue(handeled)
assertTrue(handled)
}
@Test
fun checkboxInputHandled() = runTest {
var handeled = false
var handled = false
composition {
Input(
type = InputType.Checkbox,
attrs = {
onInput { handeled = true }
onInput { handled = true }
}
)
}
@ -52,18 +52,18 @@ class EventTests {
val checkbox = root.firstChild as HTMLInputElement
checkbox.dispatchEvent(Event("input"))
assertTrue(handeled)
assertTrue(handled)
}
@Test
fun radioButtonInputHandled() = runTest {
var handeled = false
var handled = false
composition {
Input(
type = InputType.Radio,
attrs = {
onInput { handeled = true }
onInput { handled = true }
}
)
}
@ -72,17 +72,17 @@ class EventTests {
radio.dispatchEvent(Event("input"))
assertEquals(false, radio.checked)
assertTrue(handeled)
assertTrue(handled)
}
@Test
fun textAreaInputHandled() = runTest {
var handeled = false
var handled = false
composition {
TextArea(
{
onInput { handeled = true }
onInput { handled = true }
},
value = ""
)
@ -93,6 +93,6 @@ class EventTests {
assertEquals("", radio.value)
assertTrue(handeled)
assertTrue(handled)
}
}

Loading…
Cancel
Save