mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
#4454 Clean up root test directory tests
Combine cases into smaller tests of tests and remove tests we no longer need. Linter tests have been moved to where they should be.
This commit is contained in:
@@ -129,7 +129,7 @@ Execute(We should find a virtualtext error on line 2):
|
||||
endif
|
||||
|
||||
Execute(We should be able to change the virtualtext prefix globally):
|
||||
let g:ale_virtualtext_prefix = '> '
|
||||
let g:ale_virtualtext_prefix = '%severity%: '
|
||||
|
||||
if has('patch-9.0.0297') || has('nvim-0.8.0')
|
||||
let g:ale_virtualtext_cursor = 'current'
|
||||
@@ -138,7 +138,7 @@ Execute(We should be able to change the virtualtext prefix globally):
|
||||
" Tick the timer.
|
||||
sleep 1ms
|
||||
|
||||
AssertEqual '> Line 1 error', ale#virtualtext#GetLastMessageForTests()
|
||||
AssertEqual 'Error: Line 1 error', ale#virtualtext#GetLastMessageForTests()
|
||||
endif
|
||||
|
||||
Execute(We should be able to change the virtualtext prefix per-buffer):
|
||||
@@ -154,19 +154,6 @@ Execute(We should be able to change the virtualtext prefix per-buffer):
|
||||
AssertEqual 'B> Line 1 error', ale#virtualtext#GetLastMessageForTests()
|
||||
endif
|
||||
|
||||
Execute(We should be format in other data from the loclist items):
|
||||
let g:ale_virtualtext_prefix = '%severity%: '
|
||||
|
||||
if has('patch-9.0.0297') || has('nvim-0.8.0')
|
||||
let g:ale_virtualtext_cursor = 'current'
|
||||
call cursor(1, 1)
|
||||
call ale#virtualtext#ShowCursorWarningWithDelay()
|
||||
" Tick the timer.
|
||||
sleep 1ms
|
||||
|
||||
AssertEqual 'Error: Line 1 error', ale#virtualtext#GetLastMessageForTests()
|
||||
endif
|
||||
|
||||
Execute(We should set errors across all lines):
|
||||
if has('patch-9.0.0297') || has('nvim-0.8.0')
|
||||
call ale#virtualtext#SetTexts(bufnr(''), g:ale_buffer_info[bufnr('')].loclist)
|
||||
|
||||
Reference in New Issue
Block a user