summaryrefslogtreecommitdiff
path: root/test/test_highlight_placement.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-03-12 22:46:33 +0000
committerw0rp <devw0rp@gmail.com>2017-03-12 22:46:33 +0000
commit711ab9936274608dad48b20b58727c416672c115 (patch)
tree02657ac97ed3d2b6618abe8080056a8d4865e502 /test/test_highlight_placement.vader
parent382e569f668f7d7f1e21ff705a124cad54dabef1 (diff)
downloadale-711ab9936274608dad48b20b58727c416672c115.zip
#333 Remember the IDs for highlights
Diffstat (limited to 'test/test_highlight_placement.vader')
-rw-r--r--test/test_highlight_placement.vader11
1 files changed, 2 insertions, 9 deletions
diff --git a/test/test_highlight_placement.vader b/test/test_highlight_placement.vader
index b3e40c18..2bf37d19 100644
--- a/test/test_highlight_placement.vader
+++ b/test/test_highlight_placement.vader
@@ -4,27 +4,18 @@ Before:
\ {
\ 'lnum': 1,
\ 'col': 1,
- \ 'bufnr': bufnr('%'),
- \ 'vcol': 0,
- \ 'nr': -1,
\ 'type': 'E',
\ 'text': 'foo',
\ },
\ {
\ 'lnum': 2,
\ 'col': 1,
- \ 'bufnr': bufnr('%'),
- \ 'vcol': 0,
- \ 'nr': -1,
\ 'type': 'W',
\ 'text': 'bar',
\ },
\ {
\ 'lnum': 3,
\ 'col': 5,
- \ 'bufnr': bufnr('%'),
- \ 'vcol': 0,
- \ 'nr': -1,
\ 'type': 'E',
\ 'text': 'wat',
\ },
@@ -59,3 +50,5 @@ Execute(Highlights should be set when a linter runs):
\ {'group': 'ALEError', 'id': 6, 'priority': 10, 'pos1': [3, 5, 1]}
\ ],
\ getmatches()
+
+ AssertEqual [4, 5, 6], map(copy(g:ale_buffer_info[bufnr('')].loclist), 'v:val.match_id')