diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-28 17:14:21 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-28 17:55:46 +0800 |
commit | f60551f3875196f4fba016cc1fb6e708c6db911b (patch) | |
tree | 684910e45bf4317320310fce297cd8e8bf1613b7 | |
parent | c0e76fcc441064aca807a8596c7cb5908de0380d (diff) | |
download | rneovim-f60551f3875196f4fba016cc1fb6e708c6db911b.tar.gz rneovim-f60551f3875196f4fba016cc1fb6e708c6db911b.tar.bz2 rneovim-f60551f3875196f4fba016cc1fb6e708c6db911b.zip |
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
-rw-r--r-- | test/old/testdir/test_termcodes.vim | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/test/old/testdir/test_termcodes.vim b/test/old/testdir/test_termcodes.vim index 11cc8fb884..b9b207191e 100644 --- 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 |