ale/test/test_quitting_variable.vader

23 lines
397 B
Plaintext
Raw Normal View History

2017-10-14 22:22:13 +00:00
Before:
Save g:ale_enabled
unlet! b:ale_quitting
let g:ale_enabled = 0
After:
Restore
unlet! b:ale_quitting
Execute(QuitEvent should set b:ale_quitting to 1):
call ale#events#QuitEvent(bufnr(''))
AssertEqual 1, b:ale_quitting
Execute(EnterEvent should set b:ale_quitting to 0):
let b:ale_quitting = 1
call ale#events#EnterEvent(bufnr(''))
AssertEqual 0, b:ale_quitting