This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/sign/test_sign_column_highlighting.vader

23 lines
657 B
Text
Raw Normal View History

Before:
function! ParseSignColumnHighlight() abort
redir => l:output
silent highlight SignColumn
redir end
return join(split(l:output)[2:])
endfunction
let g:sign_highlight = ParseSignColumnHighlight()
After:
delfunction ParseSignColumnHighlight
execute 'highlight SignColumn ' . g:sign_highlight
unlet! g:sign_highlight
Execute(The SignColumn highlight should be set and reset):
call ale#sign#SetSignColumnHighlight(1)
AssertEqual 'links to ALESignColumnWithErrors', ParseSignColumnHighlight()
call ale#sign#SetSignColumnHighlight(0)
AssertEqual 'links to ALESignColumnWithoutErrors', ParseSignColumnHighlight()