Skip to content

Commit

Permalink
tests: improve "Output is not processed with visible popup menu" (neo…
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed authored Feb 16, 2018
1 parent 2146afa commit 8f39323
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/processing.vader
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,20 @@ Execute (Output is not processed with visible popup menu):
normal! oword2

function! s:close_pum(...)
NeomakeTestsWaitForMessage 'Not processing output during completion.', 3
call neomake#utils#DebugMessage('test: closing PUM.')
call feedkeys("\<c-e>", 'x')
call feedkeys("\<esc>")
endfunction

call neomake#Make(0, [g:sleep_efm_maker])[0]
let jobinfo = neomake#GetJobs()[-1]

call timer_start(100, 's:close_pum')
call timer_start(1, 's:close_pum')
call neomake#utils#DebugMessage('test: opening PUM.')
call feedkeys("oword\<C-p>", 'x!')

NeomakeTestsWaitForFinishedJobs
AssertNeomakeMessage 'Not processing output during completion.', 3
AssertNeomakeMessage 'sleep_efm_maker: completed with exit code 0.'
AssertNeomakeMessage 'action queue: processing for CompleteDone (1 items, winnr: 2).'
AssertNeomakeMessage 'sleep_efm_maker: processing 3 lines of output.'
Expand Down

0 comments on commit 8f39323

Please sign in to comment.