Mercurial > vim
comparison runtime/doc/testing.txt @ 24982:4cb423b9250d v8.2.3028
patch 8.2.3028: GUI mouse events not tested
Commit: https://github.com/vim/vim/commit/f1e7449d567c630601aa0cec6c663b791785a668
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Mon Jun 21 18:44:26 2021 +0200
patch 8.2.3028: GUI mouse events not tested
Problem: GUI mouse events not tested.
Solution: Add test_gui_mouse_event(). Add mouse tests. Also add a few
viminfo tests. (Yegappan Lakshmanan, closes #8407)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 21 Jun 2021 18:45:04 +0200 |
parents | 5c98ea5f5d6e |
children | 496221916885 |
comparison
equal
deleted
inserted
replaced
24981:f8566203119e | 24982:4cb423b9250d |
---|---|
1 *testing.txt* For Vim version 8.2. Last change: 2021 Apr 02 | 1 *testing.txt* For Vim version 8.2. Last change: 2021 Jun 21 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
76 {name} are supported: | 76 {name} are supported: |
77 need_fileinfo | 77 need_fileinfo |
78 | 78 |
79 Can also be used as a |method|: > | 79 Can also be used as a |method|: > |
80 GetName()->test_getvalue() | 80 GetName()->test_getvalue() |
81 < | |
82 *test_gui_mouse_event()* | |
83 test_gui_mouse_event({button}, {row}, {col}, {multiclick}, {modifiers}) | |
84 Inject a mouse button click event. This function works only | |
85 when GUI is running. | |
86 The supported values for {button} are: | |
87 0 right mouse button | |
88 1 middle mouse button | |
89 2 left mouse button | |
90 3 mouse button release | |
91 4 scroll wheel down | |
92 5 scroll wheel up | |
93 6 scroll wheel left | |
94 7 scroll wheel right | |
95 {row} and {col} specify the location of the mouse click. | |
96 To inject a multiclick event, set {multiclick} to 1. | |
97 The supported values for {modifiers} are: | |
98 4 shift is pressed | |
99 8 alt is pressed | |
100 16 ctrl is pressed | |
101 After injecting the mouse event you probably should call | |
102 |feedkeys()| to have them processed, e.g.: > | |
103 call feedkeys("y", 'Lx!') | |
104 | |
81 | 105 |
82 test_ignore_error({expr}) *test_ignore_error()* | 106 test_ignore_error({expr}) *test_ignore_error()* |
83 Ignore any error containing {expr}. A normal message is given | 107 Ignore any error containing {expr}. A normal message is given |
84 instead. | 108 instead. |
85 This is only meant to be used in tests, where catching the | 109 This is only meant to be used in tests, where catching the |