neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit f60551f3875196f4fba016cc1fb6e708c6db911b
parent c0e76fcc441064aca807a8596c7cb5908de0380d
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Fri, 28 Apr 2023 17:14:21 +0800

vim-patch:9.0.1084: code handling low level MS-Windows events cannot be tested

Problem:    Code handling low level MS-Windows events cannot be tested.
Solution:   Add test_mswin_event() and tests using it. (Christopher Plewright,
            closes vim/vim#11622)

https://github.com/vim/vim/commit/20b795e0eba6c933868c8f7cf62fb85d4f007688

Diffstat:
Mtest/old/testdir/test_termcodes.vim | 35++++++++++++++++-------------------
1 file changed, 16 insertions(+), 19 deletions(-)

diff --git a/test/old/testdir/test_termcodes.vim b/test/old/testdir/test_termcodes.vim @@ -228,25 +228,22 @@ func Test_1xterm_mouse_wheel() call assert_equal(1, line('w0'), msg) call assert_equal([0, 7, 1, 0], getpos('.'), msg) - if has('gui') - " Horizontal wheel scrolling currently only works when vim is - " compiled with gui enabled. - call MouseWheelRight(1, 1) - call assert_equal(7, 1 + virtcol(".") - wincol(), msg) - call assert_equal([0, 7, 7, 0], getpos('.'), msg) - - call MouseWheelRight(1, 1) - call assert_equal(13, 1 + virtcol(".") - wincol(), msg) - call assert_equal([0, 7, 13, 0], getpos('.'), msg) - - call MouseWheelLeft(1, 1) - call assert_equal(7, 1 + virtcol(".") - wincol(), msg) - call assert_equal([0, 7, 13, 0], getpos('.'), msg) - - call MouseWheelLeft(1, 1) - call assert_equal(1, 1 + virtcol(".") - wincol(), msg) - call assert_equal([0, 7, 13, 0], getpos('.'), msg) - endif + call MouseWheelRight(1, 1) + call assert_equal(7, 1 + virtcol(".") - wincol(), msg) + call assert_equal([0, 7, 7, 0], getpos('.'), msg) + + call MouseWheelRight(1, 1) + call assert_equal(13, 1 + virtcol(".") - wincol(), msg) + call assert_equal([0, 7, 13, 0], getpos('.'), msg) + + call MouseWheelLeft(1, 1) + call assert_equal(7, 1 + virtcol(".") - wincol(), msg) + call assert_equal([0, 7, 13, 0], getpos('.'), msg) + + call MouseWheelLeft(1, 1) + call assert_equal(1, 1 + virtcol(".") - wincol(), msg) + call assert_equal([0, 7, 13, 0], getpos('.'), msg) + endfor let &mouse = save_mouse