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
|
"Close
|
||||||
call feedkeys( "\<Esc>", 'xt' )
|
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
|
" test selection
|
||||||
call setpos('.', [ 0, 24, 8 ])
|
call setpos('.', [ 0, 24, 8 ])
|
||||||
|
|
@ -665,9 +667,13 @@ function! Test_VariableEval()
|
||||||
\ } )
|
\ } )
|
||||||
|
|
||||||
"Close
|
"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
|
" Evaluation error
|
||||||
call setpos('.', [ 0, 25, 1 ])
|
call setpos('.', [ 0, 25, 1 ])
|
||||||
|
|
@ -692,6 +698,10 @@ function! Test_VariableEval()
|
||||||
"Close
|
"Close
|
||||||
call feedkeys( "\<Esc>", 'xt' )
|
call feedkeys( "\<Esc>", 'xt' )
|
||||||
|
|
||||||
|
call WaitForAssert( {->
|
||||||
|
\ assert_equal( v:none, g:vimspector_session_windows.eval )
|
||||||
|
\ } )
|
||||||
|
|
||||||
call vimspector#test#setup#Reset()
|
call vimspector#test#setup#Reset()
|
||||||
%bwipe!
|
%bwipe!
|
||||||
endfunction
|
endfunction
|
||||||
|
|
@ -770,7 +780,9 @@ function! Test_VariableEvalExpand()
|
||||||
"Close
|
"Close
|
||||||
call feedkeys( "\<Esc>", 'xt' )
|
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()
|
call vimspector#test#setup#Reset()
|
||||||
%bwipe!
|
%bwipe!
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue