Start to add a test, but it's hitting deleting buffer that's in use [NULL]...

This commit is contained in:
Ben Jackson 2021-04-04 15:08:05 +01:00
commit e7fb49f03d
5 changed files with 71 additions and 17 deletions

View file

@ -6,6 +6,17 @@ function! ClearDown()
call vimspector#test#setup#ClearDown()
endfunction
let s:fn='../support/test/python/simple_python/main.py'
function! s:StartDebugging()
exe 'edit ' . s:fn
call setpos( '.', [ 0, 23, 1 ] )
call vimspector#ToggleBreakpoint()
call vimspector#LaunchWithSettings( { 'configuration': 'run' } )
call vimspector#test#signs#AssertCursorIsAtLineInBuffer( s:fn, 23, 1 )
endfunction
function! Test_Step_With_Different_Tabpage()
lcd testdata/cpp/simple
edit simple.cpp
@ -154,3 +165,16 @@ function! Test_All_Buffers_Deleted_Installer()
au! Test_All_Buffers_Deleted_Installer
%bwipe!
endfunction
function! Test_Close_Tab_No_Vimspector()
tabnew
q
%bwipe!
endfunction
function! Test_Close_Tab_With_Vimspector()
call s:StartDebugging()
tabclose!
call vimspector#test#setup#WaitForReset()
%bwipe!
endfunction