1
0
forked from aniani/vim

patch 8.2.2050: search test contains unneeded sleeps

Problem:    Search test contains unneeded sleeps.
Solution:   Rename the function, remove sleeps. (Christian Brabandt,
            closes #7369)
This commit is contained in:
Bram Moolenaar
2020-11-25 17:41:20 +01:00
parent d653293c80
commit 6bed0dbc85
2 changed files with 4 additions and 6 deletions

View File

@@ -1776,7 +1776,7 @@ func Test_search_stopline()
close! close!
endfunc endfunc
func Test_zzzz_incsearch_highlighting_newline() func Test_incsearch_highlighting_newline()
CheckRunVimInTerminal CheckRunVimInTerminal
CheckOption incsearch CheckOption incsearch
CheckScreendump CheckScreendump
@@ -1789,20 +1789,16 @@ func Test_zzzz_incsearch_highlighting_newline()
[CODE] [CODE]
call writefile(commands, 'Xincsearch_nl') call writefile(commands, 'Xincsearch_nl')
let buf = RunVimInTerminal('-S Xincsearch_nl', {'rows': 5, 'cols': 10}) let buf = RunVimInTerminal('-S Xincsearch_nl', {'rows': 5, 'cols': 10})
" Need to send one key at a time to force a redraw
call term_sendkeys(buf, '/test') call term_sendkeys(buf, '/test')
sleep 100m
call VerifyScreenDump(buf, 'Test_incsearch_newline1', {}) call VerifyScreenDump(buf, 'Test_incsearch_newline1', {})
" Need to send one key at a time to force a redraw
call term_sendkeys(buf, '\n') call term_sendkeys(buf, '\n')
sleep 100m
call VerifyScreenDump(buf, 'Test_incsearch_newline2', {}) call VerifyScreenDump(buf, 'Test_incsearch_newline2', {})
call term_sendkeys(buf, 'x') call term_sendkeys(buf, 'x')
sleep 100m
call VerifyScreenDump(buf, 'Test_incsearch_newline3', {}) call VerifyScreenDump(buf, 'Test_incsearch_newline3', {})
call term_sendkeys(buf, 'x') call term_sendkeys(buf, 'x')
call VerifyScreenDump(buf, 'Test_incsearch_newline4', {}) call VerifyScreenDump(buf, 'Test_incsearch_newline4', {})
call term_sendkeys(buf, "\<CR>") call term_sendkeys(buf, "\<CR>")
sleep 100m
call VerifyScreenDump(buf, 'Test_incsearch_newline5', {}) call VerifyScreenDump(buf, 'Test_incsearch_newline5', {})
call StopVimInTerminal(buf) call StopVimInTerminal(buf)

View File

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