summaryrefslogtreecommitdiff
path: root/test/test_ale_init_au_groups.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-06-24 12:24:31 +0100
committerw0rp <devw0rp@gmail.com>2017-06-24 12:24:31 +0100
commit1ea61162a0c43da9a149b24dc35911cb981fbe7c (patch)
treea88621586401f17299cd85835f47a8a27d224296 /test/test_ale_init_au_groups.vader
parentfbf8ccb882eb7819011fa837ea2b4930ed4fa9c7 (diff)
downloadale-1ea61162a0c43da9a149b24dc35911cb981fbe7c.zip
Fix #687 - Check files on enter if they have changed
Diffstat (limited to 'test/test_ale_init_au_groups.vader')
-rw-r--r--test/test_ale_init_au_groups.vader4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_ale_init_au_groups.vader b/test/test_ale_init_au_groups.vader
index 7cc3e6a6..42dd763e 100644
--- a/test/test_ale_init_au_groups.vader
+++ b/test/test_ale_init_au_groups.vader
@@ -112,12 +112,14 @@ Execute (g:ale_lint_on_enter = 0 should bind no events):
AssertEqual [], CheckAutocmd('ALERunOnEnterGroup')
-Execute (g:ale_lint_on_enter = 1 should bind no BufReadPost and BufWinEnter):
+Execute (g:ale_lint_on_enter = 1 should bind the required events):
let g:ale_lint_on_enter = 1
AssertEqual [
+ \ 'BufEnter * call ale#events#EnterEvent()',
\ 'BufReadPost * call ale#Queue(300, ''lint_file'')',
\ 'BufWinEnter * call ale#Queue(300, ''lint_file'')',
+ \ 'FileChangedShellPost * call ale#events#FileChangedEvent(str2nr(expand(''<abuf>'')))',
\], CheckAutocmd('ALERunOnEnterGroup')
Execute (g:ale_lint_on_filetype_changed = 0 should bind no events):