summaryrefslogtreecommitdiff
path: root/test/test_cursor_warnings.vader
diff options
context:
space:
mode:
authorJasper Woudenberg <mail@jasperwoudenberg.com>2017-03-01 23:14:30 -0800
committerJasper Woudenberg <mail@jasperwoudenberg.com>2017-03-01 23:27:48 -0800
commit70711022db8c8a5602550601ef275c20b2105bcc (patch)
treecf4241f15b0d696c98f2ccb625b8548901e32e44 /test/test_cursor_warnings.vader
parent18508f74532f41aa4c66a5e217550f00d150a30d (diff)
downloadale-70711022db8c8a5602550601ef275c20b2105bcc.zip
Add support for error details
Some review needed.
Diffstat (limited to 'test/test_cursor_warnings.vader')
-rw-r--r--test/test_cursor_warnings.vader14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/test_cursor_warnings.vader b/test/test_cursor_warnings.vader
index b12f2451..dbf5360f 100644
--- a/test/test_cursor_warnings.vader
+++ b/test/test_cursor_warnings.vader
@@ -10,7 +10,8 @@ Before:
\ 'nr': -1,
\ 'type': 'E',
\ 'col': 10,
- \ 'text': 'Missing semicolon. (semi)'
+ \ 'text': 'Missing semicolon. (semi)',
+ \ 'detail': 'Every statement should end with a semicolon'
\ },
\ {
\ 'lnum': 2,
@@ -84,3 +85,14 @@ Then(Check the cursor output):
let g:lines = split(g:output, "\n")
AssertEqual 'Missing radix parameter (radix)', g:lines[-1]
+
+Execute(Evaluate the cursor detail function at line 1):
+ :1
+ call ale#cursor#ShowCursorDetail()
+
+Then(Check the cursor output):
+ redir => g:output
+ :mess
+ redir END
+
+ AssertEqual "Every statement should end with a semicolon", g:output[-1]