comparison runtime/doc/testing.txt @ 29432:339fe2968690 v9.0.0058

patch 9.0.0058: Win32: cannot test low level events Commit: https://github.com/vim/vim/commit/81a3ff97e2012bdafc3ece796289f2e11e2754f3 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sat Jul 23 05:04:16 2022 +0100 patch 9.0.0058: Win32: cannot test low level events Problem: Win32: cannot test low level events. Solution: Add "sendevent" to test_gui_event(). (Yegappan Lakshmanan, closes #10679)
author Bram Moolenaar <Bram@vim.org>
date Sat, 23 Jul 2022 06:15:07 +0200
parents fba9e366ced4
children 34c1f4cd0c18
comparison
equal deleted inserted replaced
29431:6d6fa84d617c 29432:339fe2968690
92 {event} is a String and the supported values are: 92 {event} is a String and the supported values are:
93 "dropfiles" drop one or more files in a window. 93 "dropfiles" drop one or more files in a window.
94 "findrepl" search and replace text. 94 "findrepl" search and replace text.
95 "mouse" mouse button click event. 95 "mouse" mouse button click event.
96 "scrollbar" move or drag the scrollbar. 96 "scrollbar" move or drag the scrollbar.
97 "sendevent" send a low-level GUI event.
97 "tabline" select a tab page by mouse click. 98 "tabline" select a tab page by mouse click.
98 "tabmenu" select a tabline menu entry. 99 "tabmenu" select a tabline menu entry.
99 100
100 {args} is a Dict and contains the arguments for the event. 101 {args} is a Dict and contains the arguments for the event.
101 102
175 value can be between 1 and the maximum line 176 value can be between 1 and the maximum line
176 length, assuming 'wrap' is not set. 177 length, assuming 'wrap' is not set.
177 dragging: 1 to drag the scrollbar and 0 to click in the 178 dragging: 1 to drag the scrollbar and 0 to click in the
178 scrollbar. 179 scrollbar.
179 180
181 "sendevent":
182 Send a low-level GUI event (e.g. key-up or down).
183 Currently only supported on MS-Windows.
184 The supported items in {args} are:
185 event: The supported string values are:
186 keyup generate a keyup event
187 keydown generate a keydown event
188 keycode: Keycode to use for a keyup or a keydown event.
189
180 "tabline": 190 "tabline":
181 Inject a mouse click event on the tabline to select a 191 Inject a mouse click event on the tabline to select a
182 tabpage. The supported items in {args} are: 192 tabpage. The supported items in {args} are:
183 tabnr: tab page number 193 tabnr: tab page number
184 194