Add some tests for expand/collapse variables; todo - fails on gdb/linux

This commit is contained in:
Ben Jackson 2020-07-12 16:45:43 +01:00
commit 97f6dd29a6
8 changed files with 389 additions and 5 deletions

View file

@ -11,6 +11,12 @@ function! vimspector#test#setup#SetUpWithMappings( mappings ) abort
" This is a bit of a hack
runtime! plugin/**/*.vim
augroup VimspectorTestSwap
au!
au SwapExists * let v:swapchoice = 'e'
augroup END
endfunction
function! vimspector#test#setup#ClearDown() abort

View file

@ -2,7 +2,9 @@ function! vimspector#test#signs#AssertCursorIsAtLineInBuffer( buffer,
\ line,
\ column ) abort
call WaitForAssert( {->
\ assert_equal( a:buffer, bufname( '%' ), 'Current buffer' )
\ assert_equal( fnamemodify( a:buffer, ':p' ),
\ fnamemodify( bufname( '%' ), ':p' ),
\ 'Current buffer' )
\ }, 10000 )
call WaitForAssert( {->
\ assert_equal( a:line, line( '.' ), 'Current line' )