summaryrefslogtreecommitdiff
path: root/test/test_list_opening.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-08-08 07:29:10 +0100
committerw0rp <devw0rp@gmail.com>2017-08-08 07:29:10 +0100
commit5010ddc28fdced941925563bbc55f9219dfa4267 (patch)
tree6393065da7a6176db5d305563c9bd919ba6dfc62 /test/test_list_opening.vader
parent16cfedf04a46a3d498dfd4f7293c555562d0776e (diff)
downloadale-5010ddc28fdced941925563bbc55f9219dfa4267.zip
Fix #833 - Do not open windows on save when the option is off
Diffstat (limited to 'test/test_list_opening.vader')
-rw-r--r--test/test_list_opening.vader8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_list_opening.vader b/test/test_list_opening.vader
index 253efa46..024e55ae 100644
--- a/test/test_list_opening.vader
+++ b/test/test_list_opening.vader
@@ -197,3 +197,11 @@ Execute(The ale_open_list='on_save' option should work):
call ale#list#SetLists(bufnr('%'), g:loclist)
" Now the list should have opened.
Assert ale#list#IsQuickfixOpen()
+
+Execute(The window shouldn't open on save when ale_open_list=0):
+ let b:ale_open_list = 0
+ let b:ale_save_event_fired = 1
+
+ call ale#list#SetLists(bufnr('%'), g:loclist)
+ " Now the list should have opened.
+ Assert !ale#list#IsQuickfixOpen()