diff options
author | w0rp <devw0rp@gmail.com> | 2017-05-16 18:12:49 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-16 18:12:49 +0100 |
commit | a65358cfce6f2748918ef822c69a8f56eec83f20 (patch) | |
tree | 1284790d8d10a38882e359df93a1705aecae846b /test/test_highlight_placement.vader | |
parent | 8712aee5dcddd366ae52a0c57e67fdbc13c030ee (diff) | |
download | ale-a65358cfce6f2748918ef822c69a8f56eec83f20.zip |
#538 Suport highlight sizes by looking at end column numbers
Diffstat (limited to 'test/test_highlight_placement.vader')
-rw-r--r-- | test/test_highlight_placement.vader | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_highlight_placement.vader b/test/test_highlight_placement.vader index 25c98784..e43b0dc1 100644 --- a/test/test_highlight_placement.vader +++ b/test/test_highlight_placement.vader @@ -137,3 +137,16 @@ Execute(Only ALE highlights should be restored when buffers are restored): " Only our matches should appear again. AssertEqual 1, len(getmatches()), 'The highlights weren''t set again!' + +Execute(Higlight end columns should set an appropriate size): + call ale#highlight#SetHighlights(bufnr('%'), [ + \ {'bufnr': bufnr('%'), 'type': 'E', 'lnum': 3, 'col': 2, 'end_col': 5}, + \ {'bufnr': bufnr('%'), 'type': 'W', 'lnum': 4, 'col': 1, 'end_col': 5}, + \]) + + AssertEqual + \ [ + \ {'group': 'ALEError', 'id': 15, 'priority': 10, 'pos1': [3, 2, 3]}, + \ {'group': 'ALEWarning', 'id': 16, 'priority': 10, 'pos1': [4, 1, 4]}, + \ ], + \ getmatches() |