summaryrefslogtreecommitdiffstats
path: root/src/testing.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-15 19:51:56 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-15 19:51:56 +0200
commitb340baed9f7fc1c19a0742e2214d54982190c15e (patch)
treefdddb599beb4c7b83df200516e63c98703004457 /src/testing.c
parent47a519a933e8bcaf703a5feaac5c01491a658ee3 (diff)
patch 8.2.0982: insufficient testing for reading/writing filesv8.2.0982
Problem: Insufficient testing for reading/writing files. Solution: Add more tests. (Yegappan Lakshmanan, closes #6257) Add "ui_delay" to test_override() and use it for the CTRL-O test.
Diffstat (limited to 'src/testing.c')
-rw-r--r--src/testing.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testing.c b/src/testing.c
index 83e3fe4e3c..529819384e 100644
--- a/src/testing.c
+++ b/src/testing.c
@@ -854,6 +854,8 @@ f_test_override(typval_T *argvars, typval_T *rettv UNUSED)
no_query_mouse_for_testing = val;
else if (STRCMP(name, (char_u *)"no_wait_return") == 0)
no_wait_return = val;
+ else if (STRCMP(name, (char_u *)"ui_delay") == 0)
+ ui_delay_for_testing = val;
else if (STRCMP(name, (char_u *)"term_props") == 0)
reset_term_props_on_termresponse = val;
else if (STRCMP(name, (char_u *)"ALL") == 0)
@@ -863,6 +865,7 @@ f_test_override(typval_T *argvars, typval_T *rettv UNUSED)
ignore_redraw_flag_for_testing = FALSE;
nfa_fail_for_testing = FALSE;
no_query_mouse_for_testing = FALSE;
+ ui_delay_for_testing = 0;
reset_term_props_on_termresponse = FALSE;
if (save_starting >= 0)
{