diff options
author | w0rp <devw0rp@gmail.com> | 2018-07-01 11:52:02 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-07-01 11:52:02 +0100 |
commit | 1487c8daa0a544c42968afbb845334f7645b9cb2 (patch) | |
tree | 7112a3d6a3d266aa7ad95b295f2c7572872b1961 /test/test_highlight_placement.vader | |
parent | 1990efdba7fe16723940eb119d9b2fc11c7eda41 (diff) | |
download | ale-1487c8daa0a544c42968afbb845334f7645b9cb2.zip |
Make highlight tests pass more in Neovim 0.3
Diffstat (limited to 'test/test_highlight_placement.vader')
-rw-r--r-- | test/test_highlight_placement.vader | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/test/test_highlight_placement.vader b/test/test_highlight_placement.vader index 725faff4..53dcea06 100644 --- a/test/test_highlight_placement.vader +++ b/test/test_highlight_placement.vader @@ -1,7 +1,23 @@ Before: + Save g:ale_buffer_info + Save g:ale_echo_cursor Save g:ale_enabled + Save g:ale_run_synchronously + Save g:ale_set_highlights + Save g:ale_set_loclist + Save g:ale_set_quickfix Save g:ale_set_signs + let g:ale_run_synchronously = 1 + let g:ale_set_highlights = 1 + let g:ale_set_signs = 1 + let g:ale_buffer_info = {} + + " Disable features we don't need for these tests. + let g:ale_set_quickfix = 0 + let g:ale_set_loclist = 0 + let g:ale_echo_cursor = 0 + function! GenerateResults(buffer, output) return [ \ { @@ -53,8 +69,8 @@ After: delfunction GenerateResults call ale#linter#Reset() - let g:ale_buffer_info = {} call clearmatches() + sign unplace * highlight clear SomeOtherGroup Given testft(A Javscript file with warnings/errors): @@ -64,8 +80,7 @@ Given testft(A Javscript file with warnings/errors): line four Execute(Highlights should be set when a linter runs): - call ale#Lint() - call ale#engine#WaitForJobs(2000) + ALELint AssertEqual \ [ |