1
- *testing.txt* For Vim version 8.2. Last change: 2021 Jul 07
1
+ *testing.txt* For Vim version 8.2. Last change: 2021 Aug 15
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -46,6 +46,7 @@ test_alloc_fail({id}, {countdown}, {repeat}) *test_alloc_fail()*
46
46
Can also be used as a | method | : >
47
47
GetAllocId()->test_alloc_fail()
48
48
49
+
49
50
test_autochdir() *test_autochdir()*
50
51
Set a flag to enable the effect of 'autochdir' before Vim
51
52
startup has finished.
@@ -59,6 +60,7 @@ test_feedinput({string}) *test_feedinput()*
59
60
Can also be used as a | method | : >
60
61
GetText()->test_feedinput()
61
62
63
+
62
64
test_garbagecollect_now() *test_garbagecollect_now()*
63
65
Like garbagecollect(), but executed right away. This must
64
66
only be called directly to avoid any structure to exist
@@ -83,14 +85,14 @@ test_getvalue({name}) *test_getvalue()*
83
85
test_gui_drop_files({list} , {row} , {col} , {mods} )
84
86
Drop one or more files in {list} in the window at {row} , {col} .
85
87
This function only works when the GUI is running and the
86
- | drag-n-drop | feature is present.
87
-
88
+ | drop_file | feature is present.
89
+
88
90
The supported values for {mods} are:
89
91
0x4 Shift
90
92
0x8 Alt
91
93
0x10 Ctrl
92
- The files are added to the argument list and the first file in
93
- {list} is edited in the window. See | drag-n-drop | for more
94
+ The files are added to the | argument- list | and the first file
95
+ in {list} is edited in the window. See | drag-n-drop | for more
94
96
information.
95
97
96
98
*test_gui_mouse_event()*
@@ -132,6 +134,7 @@ test_ignore_error({expr}) *test_ignore_error()*
132
134
Can also be used as a | method | : >
133
135
GetErrorText()->test_ignore_error()
134
136
137
+
135
138
test_null_blob() *test_null_blob()*
136
139
Return a | Blob | that is null. Only useful for testing.
137
140
@@ -166,13 +169,6 @@ test_null_string() *test_null_string()*
166
169
Return a | String | that is null. Only useful for testing.
167
170
168
171
169
- test_unknown() *test_unknown()*
170
- Return a value with unknown type. Only useful for testing.
171
-
172
- test_void() *test_void()*
173
- Return a value with void type. Only useful for testing.
174
-
175
-
176
172
test_option_not_set({name} ) *test_option_not_set()*
177
173
Reset the flag that indicates option {name} was set. Thus it
178
174
looks like it still has the default value. Use like this: >
@@ -224,6 +220,7 @@ test_override({name}, {val}) *test_override()*
224
220
< Can also be used as a | method | : >
225
221
GetOverrideVal()-> test_override('starting')
226
222
223
+
227
224
test_refcount({expr} ) *test_refcount()*
228
225
Return the reference count of {expr} . When {expr} is of a
229
226
type that does not have a reference count, returns -1. Only
@@ -253,13 +250,15 @@ test_scrollbar({which}, {value}, {dragging}) *test_scrollbar()*
253
250
Can also be used as a | method | : >
254
251
GetValue()->test_scrollbar('right', 0)
255
252
253
+
256
254
test_setmouse({row} , {col} ) *test_setmouse()*
257
255
Set the mouse position to be used for the next mouse action.
258
256
{row} and {col} are one based.
259
257
For example: >
260
258
call test_setmouse(4, 20)
261
259
call feedkeys("\<LeftMouse>", "xt")
262
260
261
+
263
262
test_settime({expr} ) *test_settime()*
264
263
Set the time Vim uses internally. Currently only used for
265
264
timestamps in the history, as they are used in viminfo, and
@@ -272,10 +271,19 @@ test_settime({expr}) *test_settime()*
272
271
Can also be used as a | method | : >
273
272
GetTime()->test_settime()
274
273
274
+
275
275
test_srand_seed([seed]) *test_srand_seed()*
276
276
When [seed] is given this sets the seed value used by
277
277
`srand ()` . When omitted the test seed is removed.
278
278
279
+
280
+ test_unknown() *test_unknown()*
281
+ Return a value with unknown type. Only useful for testing.
282
+
283
+
284
+ test_void() *test_void()*
285
+ Return a value with void type. Only useful for testing.
286
+
279
287
==============================================================================
280
288
3. Assert functions *assert-functions-details*
281
289
@@ -446,7 +454,7 @@ assert_notmatch({pattern}, {actual} [, {msg}])
446
454
447
455
448
456
assert_report({msg} ) *assert_report()*
449
- Report a test failure directly, using {msg} .
457
+ Report a test failure directly, using String {msg} .
450
458
Always returns one.
451
459
452
460
Can also be used as a | method | : >
0 commit comments