Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4304b20

Browse files
committed
Fix tests/hooks-queue.vader for Vim patch 8.2.0452
1 parent178bebb commit4304b20

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

‎tests/hooks-queue.vader‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,19 @@ Execute (Does not nest hooks / User autocommands):
119119
if NeomakeAsyncTestsSetup()
120120
new
121121

122+
let s:uses_action_queue = has('nvim') || !has('patch-8.2.0452')
123+
122124
augroup neomake_tests
123125
autocmd User NeomakeJobFinished nested call s:OnNeomakeJobFinished()
124126
augroup END
125127

126128
function! s:OnNeomakeJobFinished() abort
127129
let jobinfo = g:neomake_hook_context.jobinfo
128-
if jobinfo.maker.name == 'maker1'
130+
if jobinfo.maker.name == 'maker1' && s:uses_action_queue
129131
NeomakeTestsWaitForMessage '\v^Queuing User autocmd NeomakeCountsChanged for nested invocation ', 3
130132
AssertNeomakeMessage 'Queuing action handle_hook for Timer, BufEnter, WinEnter, InsertLeave, CursorHold, CursorHoldI.', 3
131133
AssertNeomakeMessage '\V\^Retrying Timer event in 10ms', 3
132134
endif
133-
" call neomake#log#debug('OnNeomakeJobFinished finished.')
134135
endfunction
135136

136137
let maker1 = NeomakeTestsCommandMaker('maker1', 'echo error1; exit 1')
@@ -143,9 +144,13 @@ Execute (Does not nest hooks / User autocommands):
143144
AssertEqual map(getloclist(0), 'v:val.text'), ['error1', 'error2']
144145

145146
doautocmd WinEnter
146-
AssertNeomakeMessage 'action queue: calling handle_hook.'
147+
if s:uses_action_queue
148+
AssertNeomakeMessage 'action queue: calling handle_hook.'
149+
endif
147150
AssertNeomakeMessage '\VCalling User autocmd NeomakeCountsChanged with context: ', 3
148-
AssertNeomakeMessage 'action queue: calling CleanJobinfo.', 3
151+
if s:uses_action_queue
152+
AssertNeomakeMessage 'action queue: calling CleanJobinfo.', 3
153+
endif
149154
AssertNeomakeMessage 'Cleaning jobinfo.', 3
150155
AssertNeomakeMessage '\VCalling User autocmd NeomakeJobFinished with context: ', 3
151156
AssertNeomakeMessage '\VCalling User autocmd NeomakeFinished with context: ', 3

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp