mirror of
https://github.com/neovim/neovim.git
synced 2025-11-08 19:45:12 +00:00
test(ui/mouse_spec): make sure click is processed (#27412)
This commit is contained in:
@@ -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}|
|
||||||
|
|||||||
Reference in New Issue
Block a user