diff options
author | w0rp <devw0rp@gmail.com> | 2017-08-01 00:03:24 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-08-01 00:03:24 +0100 |
commit | a4ffd2f37c5d535d62170f7e3021cd2981689988 (patch) | |
tree | 3216004415ad5d39a42e105c6969fc59dfdea031 /test/test_ale_init_au_groups.vader | |
parent | ec82530247547a696f888cdefd4aeec5cf3d40cf (diff) | |
download | ale-a4ffd2f37c5d535d62170f7e3021cd2981689988.zip |
#734 - Use the buffer number from the events for entering buffers and saving buffers for checking buffers
Diffstat (limited to 'test/test_ale_init_au_groups.vader')
-rw-r--r-- | test/test_ale_init_au_groups.vader | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_ale_init_au_groups.vader b/test/test_ale_init_au_groups.vader index c20f4f97..e036343b 100644 --- a/test/test_ale_init_au_groups.vader +++ b/test/test_ale_init_au_groups.vader @@ -116,9 +116,9 @@ 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'')', + \ 'BufEnter * call ale#events#EnterEvent(str2nr(expand(''<abuf>'')))', + \ 'BufReadPost * call ale#Queue(0, ''lint_file'', str2nr(expand(''<abuf>'')))', + \ 'BufWinEnter * call ale#Queue(0, ''lint_file'', str2nr(expand(''<abuf>'')))', \ 'FileChangedShellPost * call ale#events#FileChangedEvent(str2nr(expand(''<abuf>'')))', \], CheckAutocmd('ALERunOnEnterGroup') @@ -151,7 +151,7 @@ Execute (g:ale_lint_on_save = 1 should bind no events): let g:ale_fix_on_save = 0 AssertEqual [ - \ 'BufWritePost * call ale#events#SaveEvent()', + \ 'BufWritePost * call ale#events#SaveEvent(str2nr(expand(''<abuf>'')))', \], CheckAutocmd('ALERunOnSaveGroup') Execute (g:ale_lint_on_save = 0 and g:ale_fix_on_save = 1 should bind events): @@ -159,7 +159,7 @@ Execute (g:ale_lint_on_save = 0 and g:ale_fix_on_save = 1 should bind events): let g:ale_fix_on_save = 1 AssertEqual [ - \ 'BufWritePost * call ale#events#SaveEvent()', + \ 'BufWritePost * call ale#events#SaveEvent(str2nr(expand(''<abuf>'')))', \], CheckAutocmd('ALERunOnSaveGroup') Execute (g:ale_fix_on_save = 1 should bind events even when ALE is disabled): @@ -168,7 +168,7 @@ Execute (g:ale_fix_on_save = 1 should bind events even when ALE is disabled): let g:ale_fix_on_save = 1 AssertEqual [ - \ 'BufWritePost * call ale#events#SaveEvent()', + \ 'BufWritePost * call ale#events#SaveEvent(str2nr(expand(''<abuf>'')))', \], CheckAutocmd('ALERunOnSaveGroup') Execute (g:ale_echo_cursor = 0 should bind no events): |