summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2024-01-13 14:18:18 +0100
committerJohannes Altmanninger <aclopte@gmail.com>2024-01-15 15:08:10 +0100
commit9d8c9777a46a37818a6c4a336f0ff5c4d79f5f18 (patch)
tree1a795fa3954de2531a8ec440a47eb0b912b8ec20 /src/input_handler.cc
parentea930664ad13052c1a89af75ccdefd5368df906a (diff)
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
Diffstat (limited to 'src/input_handler.cc')
0 files changed, 0 insertions, 0 deletions