hopefully fixing tests on mac
This commit is contained in:
parent
639e89f5db
commit
8c39a861bd
1 changed files with 16 additions and 4 deletions
|
|
@ -628,7 +628,9 @@ function! Test_VariableEval()
|
|||
"Close
|
||||
call feedkeys( "\<Esc>", 'xt' )
|
||||
|
||||
call assert_equal( v:none, g:vimspector_session_windows.eval )
|
||||
call WaitForAssert( {->
|
||||
\ assert_equal( v:none, g:vimspector_session_windows.eval )
|
||||
\ } )
|
||||
|
||||
" test selection
|
||||
call setpos('.', [ 0, 24, 8 ])
|
||||
|
|
@ -665,9 +667,13 @@ function! Test_VariableEval()
|
|||
\ } )
|
||||
|
||||
"Close
|
||||
call feedkeys( "\<Esc>", 'xt' )
|
||||
" we need to send esc twice because of the weird interactions between visual
|
||||
" mode and tests
|
||||
call feedkeys( "\<Esc>\<Esc>", 'xt' )
|
||||
|
||||
call assert_equal( v:none, g:vimspector_session_windows.eval )
|
||||
call WaitForAssert( {->
|
||||
\ assert_equal( v:none, g:vimspector_session_windows.eval )
|
||||
\ } )
|
||||
|
||||
" Evaluation error
|
||||
call setpos('.', [ 0, 25, 1 ])
|
||||
|
|
@ -692,6 +698,10 @@ function! Test_VariableEval()
|
|||
"Close
|
||||
call feedkeys( "\<Esc>", 'xt' )
|
||||
|
||||
call WaitForAssert( {->
|
||||
\ assert_equal( v:none, g:vimspector_session_windows.eval )
|
||||
\ } )
|
||||
|
||||
call vimspector#test#setup#Reset()
|
||||
%bwipe!
|
||||
endfunction
|
||||
|
|
@ -770,7 +780,9 @@ function! Test_VariableEvalExpand()
|
|||
"Close
|
||||
call feedkeys( "\<Esc>", 'xt' )
|
||||
|
||||
call assert_equal( v:none, g:vimspector_session_windows.eval )
|
||||
call WaitForAssert( {->
|
||||
\ assert_equal( v:none, g:vimspector_session_windows.eval )
|
||||
\ } )
|
||||
|
||||
call vimspector#test#setup#Reset()
|
||||
%bwipe!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue