hopefully fixing tests on mac

This commit is contained in:
dsych 2021-01-15 23:36:26 -05:00 committed by Ben Jackson
commit 8c39a861bd

View file

@ -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!