mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.1.2099: state() test fails on some Mac systems
Problem: state() test fails on some Mac systems. Solution: Increase the wait time. (closes #4983)
This commit is contained in:
@@ -1667,6 +1667,7 @@ func Test_state()
|
|||||||
let lines =<< trim END
|
let lines =<< trim END
|
||||||
call setline(1, ['one', 'two', 'three'])
|
call setline(1, ['one', 'two', 'three'])
|
||||||
map ;; gg
|
map ;; gg
|
||||||
|
set complete=.
|
||||||
func RunTimer()
|
func RunTimer()
|
||||||
call timer_start(10, {id -> execute('let g:state = state()') .. execute('let g:mode = mode()')})
|
call timer_start(10, {id -> execute('let g:state = state()') .. execute('let g:mode = mode()')})
|
||||||
endfunc
|
endfunc
|
||||||
@@ -1694,9 +1695,9 @@ func Test_state()
|
|||||||
call term_sendkeys(buf, getstate)
|
call term_sendkeys(buf, getstate)
|
||||||
call WaitForAssert({-> assert_match('state: mSc; mode: n', term_getline(buf, 6))}, 1000)
|
call WaitForAssert({-> assert_match('state: mSc; mode: n', term_getline(buf, 6))}, 1000)
|
||||||
|
|
||||||
" Insert mode completion
|
" Insert mode completion (bit slower on Mac)
|
||||||
call term_sendkeys(buf, ":call RunTimer()\<CR>Got\<C-N>")
|
call term_sendkeys(buf, ":call RunTimer()\<CR>Got\<C-N>")
|
||||||
call term_wait(buf, 50)
|
call term_wait(buf, 200)
|
||||||
call term_sendkeys(buf, "\<Esc>")
|
call term_sendkeys(buf, "\<Esc>")
|
||||||
call term_sendkeys(buf, getstate)
|
call term_sendkeys(buf, getstate)
|
||||||
call WaitForAssert({-> assert_match('state: aSc; mode: i', term_getline(buf, 6))}, 1000)
|
call WaitForAssert({-> assert_match('state: aSc; mode: i', term_getline(buf, 6))}, 1000)
|
||||||
|
@@ -753,6 +753,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 */
|
||||||
|
/**/
|
||||||
|
2099,
|
||||||
/**/
|
/**/
|
||||||
2098,
|
2098,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user