summaryrefslogtreecommitdiff
path: root/test/test_statusline.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_statusline.vader')
-rw-r--r--test/test_statusline.vader31
1 files changed, 16 insertions, 15 deletions
diff --git a/test/test_statusline.vader b/test/test_statusline.vader
index 43245e97..05e60479 100644
--- a/test/test_statusline.vader
+++ b/test/test_statusline.vader
@@ -1,9 +1,7 @@
Before:
- let g:ale_buffer_loclist_map = {}
let g:ale_statusline_format = ['%sE', '%sW', 'OKIE']
After:
- let g:ale_buffer_loclist_map = {}
let g:ale_buffer_info = {}
Execute (Count should be 0 when data is empty):
@@ -20,19 +18,22 @@ Execute (The count should be correct after an update):
AssertEqual [0, 0], ale#statusline#Count(44)
Execute (Count should be match the loclist):
- let g:ale_buffer_info = {bufnr('%'): {}}
- let g:ale_buffer_loclist_map = {bufnr('%'): [
- \ {
- \ 'lnum': 1,
- \ 'bufnr': 1,
- \ 'vcol': 0,
- \ 'linter_name': 'testlinter',
- \ 'nr': -1,
- \ 'type': 'E',
- \ 'col': 1,
- \ 'text': 'Test Error',
- \ },
- \]}
+ let g:ale_buffer_info = {
+ \ bufnr('%'): {
+ \ 'loclist': [
+ \ {
+ \ 'lnum': 1,
+ \ 'bufnr': 1,
+ \ 'vcol': 0,
+ \ 'linter_name': 'testlinter',
+ \ 'nr': -1,
+ \ 'type': 'E',
+ \ 'col': 1,
+ \ 'text': 'Test Error',
+ \ },
+ \ ],
+ \ },
+ \}
AssertEqual [1, 0], ale#statusline#Count(bufnr('%'))
Execute (Output should be empty for non-existant buffer):