patch 9.1.1681: tests: no test for actually moving cursor with 'acl'
Problem: tests: no test for actually moving cursor when menu is not
open with 'autocompletedelay'.
Solution: Use <Up> first in the test. Also remove two unnecessary <Esc>s
in completion timeout test (zeertzjq).
closes: #18097
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
fdd93e0999
commit
e8b99ff6d5
@ -1,7 +1,7 @@
|
||||
|f+0&#ffffff0|o@1| @71
|
||||
|f|o@1|b|a|r| @68
|
||||
|f|o@1|b|a|r|b|a|z| @65
|
||||
|f> @73
|
||||
|f>o@1|b|a|r|b|a|z| @65
|
||||
|f| @73
|
||||
|~+0#4040ff13&| @73
|
||||
|~| @73
|
||||
|~| @73
|
||||
|
||||
10
src/testdir/dumps/Test_autocompletedelay_11.dump
Normal file
10
src/testdir/dumps/Test_autocompletedelay_11.dump
Normal file
@ -0,0 +1,10 @@
|
||||
|f+0&#ffffff0|o@1| @71
|
||||
|f|o@1|b|a|r| @68
|
||||
|f|o@1|b|a|r|b|a|z| @65
|
||||
|f> @73
|
||||
|~+0#4040ff13&| @73
|
||||
|~| @73
|
||||
|~| @73
|
||||
|~| @73
|
||||
|~| @73
|
||||
|-+2#0000000&@1| |I|N|S|E|R|T| |-@1| +0&&@62
|
||||
@ -5495,7 +5495,6 @@ func Test_completetimeout_autocompletetimeout()
|
||||
|
||||
" Clock does not have fine granularity, so checking 'elapsed time' is only
|
||||
" approximate. We can only test that some type of timeout is enforced.
|
||||
call feedkeys("\<Esc>", 'xt!')
|
||||
call setline(1, map(range(60000), '"foo" . v:val'))
|
||||
set completetimeout=1
|
||||
call feedkeys("Gof\<C-N>\<F2>\<Esc>0", 'xt!')
|
||||
@ -5513,7 +5512,6 @@ func Test_completetimeout_autocompletetimeout()
|
||||
let match_count = len(b:matches->mapnew('v:val.word'))
|
||||
call assert_true(match_count < 50000)
|
||||
|
||||
call feedkeys("\<Esc>", 'xt!')
|
||||
set complete& omnifunc& autocomplete& autocompletetimeout& completetimeout&
|
||||
bwipe!
|
||||
%d
|
||||
@ -5563,8 +5561,10 @@ func Test_autocompletedelay()
|
||||
|
||||
" When menu is not open Up/Down moves cursor to different line
|
||||
call term_sendkeys(buf, "\<Esc>Sf")
|
||||
call term_sendkeys(buf, "\<Down>")
|
||||
call term_sendkeys(buf, "\<Up>")
|
||||
call VerifyScreenDump(buf, 'Test_autocompletedelay_10', {})
|
||||
call term_sendkeys(buf, "\<Down>")
|
||||
call VerifyScreenDump(buf, 'Test_autocompletedelay_11', {})
|
||||
|
||||
call term_sendkeys(buf, "\<esc>")
|
||||
call StopVimInTerminal(buf)
|
||||
|
||||
@ -724,6 +724,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1681,
|
||||
/**/
|
||||
1680,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user