summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/completion/test_omnifunc_completion.vader6
-rw-r--r--test/smoke_test.vader8
-rw-r--r--test/test_linting_updates_loclist.vader6
3 files changed, 11 insertions, 9 deletions
diff --git a/test/completion/test_omnifunc_completion.vader b/test/completion/test_omnifunc_completion.vader
index 3711f974..1db64705 100644
--- a/test/completion/test_omnifunc_completion.vader
+++ b/test/completion/test_omnifunc_completion.vader
@@ -45,15 +45,15 @@ Execute(The start position should be returned when results can be requested):
AssertEqual 11, ale#completion#OmniFunc(1, '')
Execute(The omnifunc function should return async results):
- " Neovim 0.2.0 struggles at running these tests.
- if !has('nvim') || has('nvim-0.3.0')
+ " Neovim 0.2.0 and 0.4.4 struggles at running these tests.
+ if !has('nvim')
call timer_start(0, function('SetCompletionResult'))
AssertEqual ['foo'], ale#completion#OmniFunc(0, '')
endif
Execute(The omnifunc function should parse and return async responses):
- if !has('nvim') || has('nvim-0.3.0')
+ if !has('nvim')
call timer_start(0, function('SetCompletionResponse'))
AssertEqual ['foo'], ale#completion#OmniFunc(0, '')
diff --git a/test/smoke_test.vader b/test/smoke_test.vader
index 0b126cc6..58206049 100644
--- a/test/smoke_test.vader
+++ b/test/smoke_test.vader
@@ -64,9 +64,9 @@ Execute(Linters should run with the default options):
\ 'valid': 1,
\ }]
- " Try the test a few times over in NeoVim 0.3 or Windows,
+ " Try the test a few times over in NeoVim 0.3 or Windows or Vim 8.2,
" where tests fail randomly.
- for g:i in range(has('nvim-0.3') || has('win32') ? 5 : 1)
+ for g:i in range(has('nvim-0.3') || has('win32') || has('patch-8.2.2401') ? 5 : 1)
call ale#Queue(0, '')
call ale#test#WaitForJobs(2000)
@@ -165,9 +165,9 @@ Execute(Previous errors should be removed when linters change):
\ 'valid': 1,
\}]
- " Try the test a few times over in NeoVim 0.3 or Windows,
+ " Try the test a few times over in NeoVim 0.3 or VIm 8.2 or Windows,
" where tests fail randomly.
- for g:i in range(has('nvim-0.3') || has('win32') ? 5 : 1)
+ for g:i in range(has('nvim-0.3') || has('win32') || has('patch-8.2.2401') ? 5 : 1)
call ale#Queue(0, '')
call ale#test#WaitForJobs(2000)
diff --git a/test/test_linting_updates_loclist.vader b/test/test_linting_updates_loclist.vader
index 8a162703..41c86522 100644
--- a/test/test_linting_updates_loclist.vader
+++ b/test/test_linting_updates_loclist.vader
@@ -7,10 +7,12 @@ Before:
Save g:ale_run_synchronously
Save g:ale_set_lists_synchronously
Save g:ale_buffer_info
+ Save g:ale_sign_offset
" We want to check that sign IDs are set for this test.
let g:ale_set_signs = 1
let g:ale_set_loclist = 1
+ let g:ale_sign_offset = 2000000
" Disable features we don't need for these tests.
let g:ale_set_quickfix = 0
let g:ale_set_highlights = 0
@@ -77,7 +79,7 @@ Execute(The loclist should be updated after linting is done):
\ 'type': 'W',
\ 'col': 10,
\ 'text': 'Infix operators must be spaced. [Warning/space-infix-ops]',
- \ 'sign_id': 1000001,
+ \ 'sign_id': 2000001,
\ },
\ {
\ 'lnum': 2,
@@ -88,7 +90,7 @@ Execute(The loclist should be updated after linting is done):
\ 'type': 'E',
\ 'col': 10,
\ 'text': 'Missing semicolon. [Error/semi]',
- \ 'sign_id': 1000002,
+ \ 'sign_id': 2000002,
\ }
\ ],
\ get(get(g:ale_buffer_info, bufnr('%'), {}), 'loclist', [])