summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/sign/test_sign_column_highlighting.vader22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/sign/test_sign_column_highlighting.vader b/test/sign/test_sign_column_highlighting.vader
new file mode 100644
index 00000000..da8bac29
--- /dev/null
+++ b/test/sign/test_sign_column_highlighting.vader
@@ -0,0 +1,22 @@
+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()