summaryrefslogtreecommitdiff
path: root/test/sign
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-10-03 10:00:16 +0100
committerw0rp <devw0rp@gmail.com>2017-10-03 10:00:16 +0100
commit3ab414de1a9591b3c3545124329645ec4621cc60 (patch)
treeab6528e15d7d3c11bc74ddaab97259d966321371 /test/sign
parent7392f808c093268fa7de1110b6935a8ad86af9b8 (diff)
downloadale-3ab414de1a9591b3c3545124329645ec4621cc60.zip
Fix #964 - Remove signs when multiple signs end up on a single line
Diffstat (limited to 'test/sign')
-rw-r--r--test/sign/test_sign_placement.vader11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/sign/test_sign_placement.vader b/test/sign/test_sign_placement.vader
index 69ae91ce..36f34e16 100644
--- a/test/sign/test_sign_placement.vader
+++ b/test/sign/test_sign_placement.vader
@@ -269,3 +269,14 @@ Execute(It should be possible to clear signs with empty lists):
Execute(No exceptions should be thrown when setting signs for invalid buffers):
call ale#sign#SetSigns(123456789, [{'lnum': 15, 'col': 2, 'type': 'W', 'text': 'e'}])
+
+Execute(Signs should be removed when lines have multiple sign IDs on them):
+ " We can fail to remove signs if there are multiple signs on one line,
+ " say after deleting lines in Vim, etc.
+ exec 'sign place 1000347 line=3 name=ALEErrorSign buffer=' . bufnr('')
+ exec 'sign place 1000348 line=3 name=ALEWarningSign buffer=' . bufnr('')
+ exec 'sign place 1000349 line=10 name=ALEErrorSign buffer=' . bufnr('')
+ exec 'sign place 1000350 line=10 name=ALEWarningSign buffer=' . bufnr('')
+
+ call ale#sign#SetSigns(bufnr(''), [])
+ AssertEqual [], ParseSigns()