diff options
author | Christopher Plewright <chris@createng.com> | 2022-12-20 20:01:58 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-12-20 20:01:58 +0000 |
commit | 20b795e0eba6c933868c8f7cf62fb85d4f007688 (patch) | |
tree | ac278d8ec958a58ba6c5a90fba8aef7270abc72f /src/testdir/test_gui.vim | |
parent | 418b54788106efd94bbc71a4b100afae1080cbfc (diff) |
patch 9.0.1084: code handling low level MS-Windows events cannot be testedv9.0.1084
Problem: Code handling low level MS-Windows events cannot be tested.
Solution: Add test_mswin_event() and tests using it. (Christopher Plewright,
closes #11622)
Diffstat (limited to 'src/testdir/test_gui.vim')
-rw-r--r-- | src/testdir/test_gui.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_gui.vim b/src/testdir/test_gui.vim index 3c7cfb9a0b..0c1e0a5771 100644 --- a/src/testdir/test_gui.vim +++ b/src/testdir/test_gui.vim @@ -1281,7 +1281,7 @@ func Test_gui_mouse_move_event() let g:eventlist = g:eventlist[1 : ] endif - call assert_equal([#{row: 4, col: 31}, #{row: 11, col: 31}], g:eventlist) + call assert_equal([#{row: 3, col: 30}, #{row: 10, col: 30}], g:eventlist) " wiggle the mouse around within a screen cell, shouldn't trigger events call extend(args, #{cell: v:false}) @@ -1638,10 +1638,10 @@ endfunc " Test for sending low level key presses func SendKeys(keylist) for k in a:keylist - call test_gui_event("sendevent", #{event: "keydown", keycode: k}) + call test_gui_event("key", #{event: "keydown", keycode: k}) endfor for k in reverse(a:keylist) - call test_gui_event("sendevent", #{event: "keyup", keycode: k}) + call test_gui_event("key", #{event: "keyup", keycode: k}) endfor endfunc |