0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00

patch 8.1.1106: no test for 'writedelay'

Problem:    No test for 'writedelay'.
Solution:   Add a test.
This commit is contained in:
Bram Moolenaar 2019-04-03 21:42:35 +02:00
parent 5da04ef1b4
commit 449ac47f93
2 changed files with 22 additions and 0 deletions

View File

@ -518,3 +518,23 @@ func Test_local_scrolloff()
set so&
set siso&
endfunc
func Test_writedelay()
if !has('reltime')
return
endif
new
call setline(1, 'empty')
redraw
set writedelay=10
let start = reltime()
call setline(1, repeat('x', 70))
redraw
let elapsed = reltimefloat(reltime(start))
set writedelay=0
" With 'writedelay' set should take at least 30 * 10 msec
call assert_inrange(30 * 0.01, 999.0, elapsed)
bwipe!
delfunc ChangeText
endfunc

View File

@ -771,6 +771,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1106,
/**/
1105,
/**/