summaryrefslogtreecommitdiff
path: root/test/test_quitting_variable.vader
blob: 80b0a8ddc58536d832f24538d885ed7a0af2516c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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