diff options
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 \ [ |