diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-10 12:57:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-10 12:57:40 +0800 |
commit | 4948fa42efb90333a3b5738fd943b75f35415a7b (patch) | |
tree | 970cec736c4ee9a22125983de54069759a588f5d /test/functional/ui/mouse_spec.lua | |
parent | 7ab003ec790b34803d64e10e4eb463e585d599d0 (diff) | |
download | rneovim-4948fa42efb90333a3b5738fd943b75f35415a7b.tar.gz rneovim-4948fa42efb90333a3b5738fd943b75f35415a7b.tar.bz2 rneovim-4948fa42efb90333a3b5738fd943b75f35415a7b.zip |
test(ui/mouse_spec): make sure click is processed (#27412)
Diffstat (limited to 'test/functional/ui/mouse_spec.lua')
-rw-r--r-- | test/functional/ui/mouse_spec.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/ui/mouse_spec.lua b/test/functional/ui/mouse_spec.lua index 6a1b3fb0ed..7f551c5ee5 100644 --- a/test/functional/ui/mouse_spec.lua +++ b/test/functional/ui/mouse_spec.lua @@ -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}| |