aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir/mouse.vim
diff options
context:
space:
mode:
Diffstat (limited to 'test/old/testdir/mouse.vim')
-rw-r--r--test/old/testdir/mouse.vim24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/old/testdir/mouse.vim b/test/old/testdir/mouse.vim
index a3b0ddd008..b9f1714dd9 100644
--- a/test/old/testdir/mouse.vim
+++ b/test/old/testdir/mouse.vim
@@ -34,6 +34,18 @@ func MouseCtrlRightClick(row, col)
call feedkeys('', 'x!')
endfunc
+func MouseAltLeftClick(row, col)
+ call nvim_input_mouse('left', 'press', 'A', 0, a:row - 1, a:col - 1)
+ call getchar(1)
+ call feedkeys('', 'x!')
+endfunc
+
+func MouseAltRightClick(row, col)
+ call nvim_input_mouse('right', 'press', 'A', 0, a:row - 1, a:col - 1)
+ call getchar(1)
+ call feedkeys('', 'x!')
+endfunc
+
func MouseLeftRelease(row, col)
call nvim_input_mouse('left', 'release', '', 0, a:row - 1, a:col - 1)
call getchar(1)
@@ -70,4 +82,16 @@ func MouseWheelDown(row, col)
call feedkeys('', 'x!')
endfunc
+func MouseWheelLeft(row, col)
+ call nvim_input_mouse('wheel', 'left', '', 0, a:row - 1, a:col - 1)
+ call getchar(1)
+ call feedkeys('', 'x!')
+endfunc
+
+func MouseWheelRight(row, col)
+ call nvim_input_mouse('wheel', 'right', '', 0, a:row - 1, a:col - 1)
+ call getchar(1)
+ call feedkeys('', 'x!')
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab