diff options
author | w0rp <devw0rp@gmail.com> | 2019-02-06 22:00:11 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-02-06 22:00:11 +0000 |
commit | 81c73da3b98455c4ad11f32208dac3dcfa6e0da7 (patch) | |
tree | 4b52d8ceb590c51c7a6facf11dd638f1614502a9 /test/test_command_chain.vader | |
parent | 3e11cbd18da3852fab5dee3f743bc60dc87f0775 (diff) | |
download | ale-81c73da3b98455c4ad11f32208dac3dcfa6e0da7.zip |
#2132 - lint and fix with ale#command#Run
A new function is added here which will later be modified for public use
in linter and fixer callbacks. All linting and fixing now goes through
this new function, to prove that it works in all cases.
Diffstat (limited to 'test/test_command_chain.vader')
-rw-r--r-- | test/test_command_chain.vader | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_command_chain.vader b/test/test_command_chain.vader index 591f6f40..329ebc97 100644 --- a/test/test_command_chain.vader +++ b/test/test_command_chain.vader @@ -1,6 +1,7 @@ Before: Save &shell, g:ale_run_synchronously let g:ale_run_synchronously = 1 + unlet! g:ale_run_synchronously_callbacks if !has('win32') set shell=/bin/sh @@ -47,6 +48,7 @@ Before: After: Restore + unlet! g:ale_run_synchronously_callbacks unlet! g:first_echo_called unlet! g:second_echo_called unlet! g:final_callback_called @@ -63,6 +65,7 @@ Given foobar (Some imaginary filetype): Execute(Check the results of running the chain): AssertEqual 'foobar', &filetype call ale#Queue(0) + call ale#test#FlushJobs() Assert g:first_echo_called, 'The first chain item was not called' Assert g:second_echo_called, 'The second chain item was not called' |