diff options
Diffstat (limited to 'test/sign/test_sign_column_highlighting.vader')
-rw-r--r-- | test/sign/test_sign_column_highlighting.vader | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/test/sign/test_sign_column_highlighting.vader b/test/sign/test_sign_column_highlighting.vader index 4457a45c..0b506fa7 100644 --- a/test/sign/test_sign_column_highlighting.vader +++ b/test/sign/test_sign_column_highlighting.vader @@ -1,12 +1,13 @@ Before: Save g:ale_change_sign_column_color + Save &verbose function! ParseHighlight(name) abort redir => l:output silent execute 'highlight ' . a:name redir end - return join(split(l:output)[2:]) + return substitute(join(split(l:output)[2:]), ' Last set.*', '', '') endfunction function! SetHighlight(name, syntax) abort @@ -53,3 +54,15 @@ Execute(The SignColumn highlight should be set and reset): call ale#sign#SetSigns(bufnr(''), []) AssertEqual 'links to ALESignColumnWithoutErrors', ParseHighlight('SignColumn') + +Execute(The SignColumn should be correctly parsed when verbose=1): + set verbose=1 + highlight SignColumn ctermfg=246 ctermbg=7 guifg=#839496 guibg=Grey + + call ale#sign#SetUpDefaultColumnWithoutErrorsHighlight() + + AssertEqual + \ has('nvim') + \ ? 'ctermfg=246 ctermbg=7 guifg=#839496 guibg=Grey' + \ : 'term=standout ctermfg=246 ctermbg=7 guifg=#839496 guibg=Grey', + \ ParseHighlight('ALESignColumnWithoutErrors') |