1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:40:06 +08:00
SpaceVim/bundle/neomake/tests/clean.vader
2020-06-13 14:06:35 +08:00

67 lines
1.4 KiB
Plaintext

Include: include/setup.vader
Execute (NeomakeClean: no-op):
NeomakeClean
NeomakeClean!
Execute (NeomakeClean: file-mode):
Save g:neomake_open_list
let g:neomake_open_list = 2
new
let win_count = winnr('$')
CallNeomake 1, [g:entry_maker]
AssertEqual winnr('$'), win_count + 1, "loclist appeared"
NeomakeClean
AssertEqual winnr('$'), win_count + 1, "loclist was not closed"
lclose
bwipe
Execute (NeomakeClean: file-mode (customqf)):
Save g:neomake_open_list
let g:neomake_open_list = 2
try
call neomake#quickfix#enable(1)
new
let win_count = winnr('$')
CallNeomake 1, [g:entry_maker]
AssertEqual winnr('$'), win_count + 1, "loclist appeared"
NeomakeClean
AssertEqual winnr('$'), win_count, "loclist was closed"
bwipe
finally
call neomake#quickfix#disable()
endtry
Execute (NeomakeClean: project-mode):
Save g:neomake_open_list
let g:neomake_open_list = 2
new
CallNeomake 0, [g:entry_maker]
NeomakeClean!
cclose
bwipe
Execute (NeomakeClean: project-mode (customqf)):
Save g:neomake_open_list
let g:neomake_open_list = 2
try
call neomake#quickfix#enable(1)
new
let win_count = winnr('$')
CallNeomake 0, [g:entry_maker]
AssertEqual winnr('$'), win_count + 1, "qflist appeared"
NeomakeClean!
AssertEqual winnr('$'), win_count, "qflist was closed"
bwipe
finally
call neomake#quickfix#disable()
endtry