Skip to content

Commit

Permalink
Fix hover and sig help tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bstaletic committed Oct 3, 2023
1 parent 374cc86 commit 36c17d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/hover.test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ let s:cpp_lifetime = {
\ '',
\ 'Type: char',
\ 'Offset: 16 bytes',
\ 'Size: 1 byte (+7 padding)',
\ 'Size: 1 byte (+7 bytes padding)',
\ 'nobody will live > 128 years',
\ '',
\ '// In PointInTime',
Expand Down
8 changes: 4 additions & 4 deletions test/signature_help.test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -804,23 +804,23 @@ function! Test_Signature_Help_Manual_HideShow()
function! Check( ... )
call youcompleteme#test#popup#CheckPopupPosition(
\ s:_GetSigHelpWinID(),
\ { 'line': 9, 'col': 6, 'visible': 1 } )
\ { 'line': 9, 'col': 8, 'visible': 1 } )

call FeedAndCheckAgain( 'kjkj', funcref( 'Check2' ) )
endfunction

function! Check2( ... )
call youcompleteme#test#popup#CheckPopupPosition(
\ s:_GetSigHelpWinID(),
\ { 'line': 9, 'col': 6, 'visible': 0 } )
\ { 'line': 9, 'col': 8, 'visible': 0 } )

call FeedAndCheckAgain( 'kjkj', funcref( 'Check3' ) )
endfunction

function! Check3( ... )
call youcompleteme#test#popup#CheckPopupPosition(
\ s:_GetSigHelpWinID(),
\ { 'line': 9, 'col': 6, 'visible': 1 } )
\ { 'line': 9, 'col': 8, 'visible': 1 } )

call feedkeys( "\<Esc>" )
endfunction
Expand Down Expand Up @@ -858,7 +858,7 @@ function! Test_Signature_Help_Manual_NoSigs()
let popup_id = s:_GetSigHelpWinID()
call youcompleteme#test#popup#CheckPopupPosition(
\ s:_GetSigHelpWinID(),
\ { 'line': 9, 'col': 6, 'visible': 1 } )
\ { 'line': 9, 'col': 8, 'visible': 1 } )

call FeedAndCheckAgain( ')', funcref( 'CheckSigsClosed' ) )
endfunction
Expand Down

0 comments on commit 36c17d1

Please sign in to comment.