test(ui/mouse_spec): make sure click is processed (#27412)

This commit is contained in:
zeertzjq
2024-02-10 12:57:40 +08:00
committed by GitHub
parent 7ab003ec79
commit 4948fa42ef

View File

@@ -188,6 +188,9 @@ describe('ui/mouse/input', function()
|
]])
feed('<LeftMouse><11,0>')
-- Prevent the case where screen:expect() with "unchanged" returns too early,
-- causing the click position to be overwritten by the next drag.
poke_eventloop()
screen:expect {
grid = [[
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
@@ -282,6 +285,9 @@ describe('ui/mouse/input', function()
|
]])
feed('<LeftMouse><11,0>')
-- Prevent the case where screen:expect() with "unchanged" returns too early,
-- causing the click position to be overwritten by the next drag.
poke_eventloop()
screen:expect {
grid = [[
{tab: + foo }{sel: + bar }{fill: }{tab:X}|