1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-29 10:02:57 +03:00
kakoune/test/regression/0-mouse-during-insert
Johannes Altmanninger 9d8c9777a4 Await all UI events after each key press in mouse-during-insert test
This test doesn't care about testing things like "if I send the next
key before we have finished reacting to the previous ones, nothing
bad ever happens".

Hence we can until exhaustion after each input.  This should fix
bespoke flakiness. The handling of "c<esc>" should be atomic.

This reasoning probably applies to most tests; waiting for all events
seems like the safest and easiest approach overall (compared to sleep
or sleep-until). The downside is that the tests need changes when
UI code changes but it rarely does, and if it does we can automate
the updates.

Closes #5073
2024-01-15 15:08:10 +01:00
..
cmd Remove bogus assertions preventing mouse clicks in insert mode 2023-01-08 10:47:36 +01:00
in Remove bogus assertions preventing mouse clicks in insert mode 2023-01-08 10:47:36 +01:00
out Remove bogus assertions preventing mouse clicks in insert mode 2023-01-08 10:47:36 +01:00
script Await all UI events after each key press in mouse-during-insert test 2024-01-15 15:08:10 +01:00