diff options
author | w0rp <devw0rp@gmail.com> | 2018-07-23 20:41:06 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-07-23 20:41:48 +0100 |
commit | d9579dbbe91af9e23328faafb92d664ad30c67ef (patch) | |
tree | 86aaa32765d026577174d959de180b5f98bee26e /test/smoke_test.vader | |
parent | 11339ca730cbd3462bc81b565596ef0c9c3c561a (diff) | |
download | ale-d9579dbbe91af9e23328faafb92d664ad30c67ef.zip |
Get tests to pass in Vim 8.1
Diffstat (limited to 'test/smoke_test.vader')
-rw-r--r-- | test/smoke_test.vader | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/test/smoke_test.vader b/test/smoke_test.vader index 1cbf512d..2708c86f 100644 --- a/test/smoke_test.vader +++ b/test/smoke_test.vader @@ -35,7 +35,6 @@ After: unlet! g:i unlet! g:results - unlet! g:item unlet! g:expected_results delfunction TestCallback @@ -69,13 +68,7 @@ Execute(Linters should run with the default options): call ale#Lint() call ale#engine#WaitForJobs(2000) - let g:results = getloclist(0) - - for g:item in g:results - if has_key(g:item, 'module') - call remove(g:item, 'module') - endif - endfor + let g:results = ale#test#GetLoclistWithoutModule() if g:results == g:expected_results break @@ -142,7 +135,7 @@ Execute(Linters should run in PowerShell too): \ 'pattern': '', \ 'valid': 1, \ }, - \], getloclist(0) + \], ale#test#GetLoclistWithoutModule() endif Execute(Previous errors should be removed when linters change): @@ -176,13 +169,7 @@ Execute(Previous errors should be removed when linters change): call ale#Lint() call ale#engine#WaitForJobs(2000) - let g:results = getloclist(0) - - for g:item in g:results - if has_key(g:item, 'module') - call remove(g:item, 'module') - endif - endfor + let g:results = ale#test#GetLoclistWithoutModule() if g:results == g:expected_results break |