mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test(ui/mouse_spec): make sure click is processed (#27412)
This commit is contained in:
parent
7ab003ec79
commit
4948fa42ef
@ -188,6 +188,9 @@ describe('ui/mouse/input', function()
|
|||||||
|
|
|
|
||||||
]])
|
]])
|
||||||
feed('<LeftMouse><11,0>')
|
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 {
|
screen:expect {
|
||||||
grid = [[
|
grid = [[
|
||||||
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
|
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
|
||||||
@ -282,6 +285,9 @@ describe('ui/mouse/input', function()
|
|||||||
|
|
|
|
||||||
]])
|
]])
|
||||||
feed('<LeftMouse><11,0>')
|
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 {
|
screen:expect {
|
||||||
grid = [[
|
grid = [[
|
||||||
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
|
{tab: + foo }{sel: + bar }{fill: }{tab:X}|
|
||||||
|
Loading…
Reference in New Issue
Block a user