summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhysd <lin90162@yahoo.co.jp>2018-05-11 19:07:16 +0900
committerrhysd <lin90162@yahoo.co.jp>2018-05-11 19:07:16 +0900
commit168569b8b0af67f7d8268ab9cc6a65a2d6ceedba (patch)
treeb9c04399b6ded6e80783134737e99cb8317768dc
parent57f0454a557a1bb254fe63c583c53088b619c040 (diff)
downloadale-168569b8b0af67f7d8268ab9cc6a65a2d6ceedba.zip
Fix condition to test a balloon feature
-rw-r--r--test/test_ale_toggle.vader10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/test_ale_toggle.vader b/test/test_ale_toggle.vader
index ca8b25d5..427000b6 100644
--- a/test/test_ale_toggle.vader
+++ b/test/test_ale_toggle.vader
@@ -12,7 +12,9 @@ Before:
let g:ale_run_synchronously = 1
let g:ale_pattern_options = {}
let g:ale_pattern_options_enabled = 1
- let g:ale_set_balloons = has('balloon_eval')
+ let g:ale_set_balloons =
+ \ has('balloon_eval') && has('gui_running') ||
+ \ has('balloon_eval_term') && !has('gui_running')
unlet! b:ale_enabled
@@ -349,7 +351,8 @@ Execute(ALEResetBuffer should reset everything for a buffer):
Execute(Disabling ALE should disable balloons):
" These tests won't run in the console, but we can run them manually in GVim.
- if has('balloon_eval')
+ if has('balloon_eval') && has('gui_running') ||
+ \ has('balloon_eval_term') && !has('gui_running')
call ale#linter#Reset()
" Enable balloons, so we can check the expr value.
@@ -367,7 +370,8 @@ Execute(Disabling ALE should disable balloons):
endif
Execute(Enabling ALE should enable balloons if the setting is on):
- if has('balloon_eval')
+ if has('balloon_eval') && has('gui_running') ||
+ \ has('balloon_eval_term') && !has('gui_running')
call ale#linter#Reset()
call ale#balloon#Disable()
ALEDisable