Skip to content

Update testing.{txt,jax} #1520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions doc/testing.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*testing.txt* For Vim バージョン 9.1. Last change: 2024 May 03
*testing.txt* For Vim バージョン 9.1. Last change: 2024 May 05


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -369,32 +369,32 @@ test_override({name}, {val}) *test_override()*
{name} {val} が非 0 のときの効果 ~
alloc_lines 確保したメモリ内に各バッファの行のコピーを作り、
それによりメモリアクセスのエラーが valgrind で検
出できる
出できる
autoload `import autoload` でスクリプトを正しい手順でロー
ドし、項目が使用されるまで延期はしない
char_avail char_avail() 関数を無効化する
ドし、項目が使用されるまで延期はしない
char_avail char_avail() 関数を無効化する
defcompile 読み込まれたスクリプト内のすべての |:def| 関数は、
定義時にコンパイルされる。これは、スクリプトで
|:defcompile| コマンドを使用するのと似ている
|:defcompile| コマンドを使用するのと似ている
nfa_fail 古い正規表現エンジンに戻すために、NFA regexp エン
ジンを失敗させる
no_query_mouse "dec" 端末のマウス位置を問い合わせない
ジンを失敗させる
no_query_mouse "dec" 端末のマウス位置を問い合わせない
no_wait_return "no_wait_return" フラグを設定する。"ALL" では
復元されない
redraw redrawing() 関数を無効化する
redraw_flag RedrawingDisabled フラグを無視する
starting "starting" 変数を初期化する、下記参照
復元されない
redraw redrawing() 関数を無効化する
redraw_flag RedrawingDisabled フラグを無視する
starting "starting" 変数を初期化する、下記参照
term_props バージョン文字列が検出された場合、すべてのターミ
ナルプロパティをリセットする
ナルプロパティをリセットする
ui_delay ui_delay() で使用するミリ秒単位の時間; メッセージ
の最大3秒の待ち時間を上書きする
の最大3秒の待ち時間を上書きする
unreachable `throw` と `:return` の後のコードではエラーになら
ない
uptime sysinfo.uptime を上書きする
ない
uptime sysinfo.uptime を上書きする
vterm_title 端末ウィンドウ内でジョブが走っている場合にウィン
ドウタイトルを設定する
ドウタイトルを設定する
ALL alloc_lines 以外のすべての置き換えをクリアする
({val} は使われない)
({val} は使われない)

"starting" は、起動が完了したようにテストが振る舞うべきときに
使われる。テストはスクリプトを読み込むことによって開始されるの
Expand Down
30 changes: 15 additions & 15 deletions en/testing.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*testing.txt* For Vim version 9.1. Last change: 2024 May 03
*testing.txt* For Vim version 9.1. Last change: 2024 May 05


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -365,32 +365,32 @@ test_override({name}, {val}) *test_override()*
{name} effect when {val} is non-zero ~
alloc_lines make a copy of every buffer line into allocated
memory, so that memory access errors can be found
by valgrind
by valgrind.
autoload `import autoload` will load the script right
away, not postponed until an item is used
char_avail disable the char_avail() function
away, not postponed until an item is used.
char_avail disable the char_avail() function.
defcompile all the |:def| functions in a sourced script are
compiled when defined. This is similar to using
the |:defcompile| command in a script.
nfa_fail makes the NFA regexp engine fail to force a
fallback to the old engine
fallback to the old engine.
no_query_mouse do not query the mouse position for "dec"
terminals
terminals.
no_wait_return set the "no_wait_return" flag. Not restored
with "ALL".
redraw disable the redrawing() function
redraw_flag ignore the RedrawingDisabled flag
starting reset the "starting" variable, see below
redraw disable the redrawing() function.
redraw_flag ignore the RedrawingDisabled flag.
starting reset the "starting" variable, see below.
term_props reset all terminal properties when the version
string is detected
string is detected.
ui_delay time in msec to use in ui_delay(); overrules a
wait time of up to 3 seconds for messages
unreachable no error for code after `:throw` and `:return`
uptime overrules sysinfo.uptime
wait time of up to 3 seconds for messages.
unreachable no error for code after `:throw` and `:return`.
uptime overrules sysinfo.uptime.
vterm_title setting the window title by a job running in a
terminal window
terminal window.
ALL clear all overrides, except alloc_lines ({val} is
not used)
not used).

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