summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-07-01 11:52:02 +0100
committerw0rp <devw0rp@gmail.com>2018-07-01 11:52:02 +0100
commit1487c8daa0a544c42968afbb845334f7645b9cb2 (patch)
tree7112a3d6a3d266aa7ad95b295f2c7572872b1961
parent1990efdba7fe16723940eb119d9b2fc11c7eda41 (diff)
downloadale-1487c8daa0a544c42968afbb845334f7645b9cb2.zip
Make highlight tests pass more in Neovim 0.3
-rw-r--r--test/test_highlight_placement.vader21
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
\ [