Skip to content

Commit 7510db2

Browse files
authored
Merge pull request #1175 from tsuyoshicho/update/20221016/testing
Update testing.{txt,jax}
2 parents 168edfa + 2e07ea3 commit 7510db2

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

doc/testing.jax

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ test_gui_event({event}, {args})
9292
"findrepl" テキストの検索と置換。
9393
"mouse" マウスのボタンクリックイベント。
9494
"scrollbar" スクロールバーの移動もしくはドラッグ。
95+
"sendevent" 低レベル GUI イベントを送出する。
9596
"tabline" マウスクリックによるタブページ行の選択。
9697
"tabmenu" タブページ行のメニューエントリの選択。
9798

@@ -173,6 +174,16 @@ test_gui_event({event}, {args})
173174
dragging: 1はスクロールバーをドラッグし、0はスクロール
174175
バーをクリックする。
175176

177+
"sendevent":
178+
低レベルの GUI のイベント(例、キーUpやキーDown)を送出する。
179+
現在は MS-Windows のみサポートしている。
180+
{args} でサポートする項目は:
181+
event: サポートする文字列値は:
182+
keyup キーUpイベントを生成する
183+
keydown キーDownイベントを生成する
184+
keycode: キーのUp/Downイベントで使用するキーコード
185+
*E1291*
186+
176187
"tabline":
177188
タブページ行のマウスクリックイベントの注入によるタブページの
178189
選択。{args} でサポートする項目は:
@@ -266,6 +277,9 @@ test_override({name}, {val}) *test_override()*
266277
現在、{name} に使える値は:
267278

268279
{name} {val} が非 0 のときの効果 ~
280+
alloc_lines 確保したメモリ内に各バッファの行のコピーを作り、
281+
それによりメモリアクセスのエラーが valgrind で検
282+
出できる
269283
autoload `import autoload` でスクリプトを正しい手順でロード
270284
し、項目が使用されるまで延期はしない
271285
char_avail char_avail() 関数を無効化する
@@ -284,7 +298,8 @@ test_override({name}, {val}) *test_override()*
284298
uptime sysinfo.uptime を上書きする
285299
vterm_title 端末ウィンドウ内でジョブが走っている場合にウィン
286300
ドウタイトルを設定する
287-
ALL すべての置き換えをクリアする ({val} は使われない)
301+
ALL alloc_lines 以外のすべての置き換えをクリアする
302+
({val} は使われない)
288303

289304
"starting" は、起動が完了したようにテストが振る舞うべきときに
290305
使われる。テストはスクリプトを読み込むことによって開始されるの

en/testing.txt

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ test_gui_event({event}, {args})
9494
"findrepl" search and replace text.
9595
"mouse" mouse button click event.
9696
"scrollbar" move or drag the scrollbar.
97+
"sendevent" send a low-level GUI event.
9798
"tabline" select a tab page by mouse click.
9899
"tabmenu" select a tabline menu entry.
99100

@@ -177,6 +178,16 @@ test_gui_event({event}, {args})
177178
dragging: 1 to drag the scrollbar and 0 to click in the
178179
scrollbar.
179180

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+
*E1291*
190+
180191
"tabline":
181192
Inject a mouse click event on the tabline to select a
182193
tabpage. The supported items in {args} are:
@@ -268,6 +279,9 @@ test_override({name}, {val}) *test_override()*
268279
Current supported values for {name} are:
269280

270281
{name} effect when {val} is non-zero ~
282+
alloc_lines make a copy of every buffer line into allocated
283+
memory, so that memory access errors can be found
284+
by valgrind
271285
autoload `import autoload` will load the script right
272286
away, not postponed until an item is used
273287
char_avail disable the char_avail() function
@@ -287,7 +301,8 @@ test_override({name}, {val}) *test_override()*
287301
uptime overrules sysinfo.uptime
288302
vterm_title setting the window title by a job running in a
289303
terminal window
290-
ALL clear all overrides ({val} is not used)
304+
ALL clear all overrides, except alloc_lines ({val} is
305+
not used)
291306

292307
"starting" is to be used when a test should behave like
293308
startup was done. Since the tests are run by sourcing a

0 commit comments

Comments
 (0)