All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
4 Save g:ale_set_balloons
6 let g:ale_set_balloons = 1
8 let g:ale_buffer_info[bufnr('')] = {'loclist': [
10 \ 'bufnr': bufnr('%'),
13 \ 'linter_name': 'eslint',
15 \ 'text': 'Ignore me.',
21 \ 'text': 'Missing semicolon. (semi)',
28 \ 'text': 'Infix operators must be spaced. (space-infix-ops)'
34 \ 'text': 'Missing radix parameter (radix)'
42 unlet! b:ale_set_balloons
44 Execute(Balloon messages should be shown for the correct lines):
46 \ 'Missing semicolon. (semi)',
47 \ ale#balloon#MessageForPos(bufnr(''), 1, 1)
49 Execute(Balloon messages should be shown for earlier columns):
51 \ 'Infix operators must be spaced. (space-infix-ops)',
52 \ ale#balloon#MessageForPos(bufnr(''), 2, 1)
54 Execute(Balloon messages should be shown for later columns):
56 \ 'Missing radix parameter (radix)',
57 \ ale#balloon#MessageForPos(bufnr(''), 2, 16)
59 Execute(Balloon messages should be disabled if ALE is disabled globally):
61 " Enabling the buffer should not make a difference.
64 AssertEqual '', ale#balloon#MessageForPos(bufnr(''), 1, 1)
66 Execute(Balloon messages should be disabled if ALE is disabled for a buffer):
69 AssertEqual '', ale#balloon#MessageForPos(bufnr(''), 1, 1)
71 Execute(Balloon messages should be disabled if the global setting is off):
72 let g:ale_set_balloons = 0
74 AssertEqual '', ale#balloon#MessageForPos(bufnr(''), 1, 1)
76 Execute(Balloon messages should be disabled if the buffer setting is off):
77 let b:ale_set_balloons = 0
79 AssertEqual '', ale#balloon#MessageForPos(bufnr(''), 1, 1)
81 Execute(The balloon buffer setting should override the global one):
82 let g:ale_set_balloons = 0
83 let b:ale_set_balloons = 1
86 \ 'Missing semicolon. (semi)',
87 \ ale#balloon#MessageForPos(bufnr(''), 1, 1)