summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-05-15 21:21:09 +0100
committerw0rp <devw0rp@gmail.com>2017-05-15 21:21:09 +0100
commit4c5e97dd1c57082c8106556150a49f11760e55b0 (patch)
tree8a717a034a4eeea09b935ac173b807b5fa920f8c /test/handler
parent78a7df52c0326d51846f262f8c3bc4e231f21659 (diff)
downloadale-4c5e97dd1c57082c8106556150a49f11760e55b0.zip
Fix #555 - Handle csslint errors without groups
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_common_handlers.vader25
1 files changed, 23 insertions, 2 deletions
diff --git a/test/handler/test_common_handlers.vader b/test/handler/test_common_handlers.vader
index a9fc9149..e945b2cc 100644
--- a/test/handler/test_common_handlers.vader
+++ b/test/handler/test_common_handlers.vader
@@ -11,12 +11,33 @@ Execute(HandleCSSLintFormat should handle CSS errors):
\ 'lnum': 2,
\ 'col': 5,
\ 'type': 'W',
- \ 'text': "(known-properties) Expected ... but found 'wat'.",
+ \ 'text': '(known-properties) Expected ... but found ''wat''.',
\ },
\ ],
\ ale#handlers#css#HandleCSSLintFormat(42, [
\ 'something.css: line 2, col 1, Error - Expected RBRACE at line 2, col 1. (errors)',
- \ "something.css: line 2, col 5, Warning - Expected ... but found 'wat'. (known-properties)",
+ \ 'something.css: line 2, col 5, Warning - Expected ... but found ''wat''. (known-properties)',
+ \ ])
+
+Execute(HandleCSSLintFormat should handle CSS errors without groups):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 7,
+ \ 'col': 3,
+ \ 'type': 'W',
+ \ 'text': 'Unknown property ''fill''.',
+ \ },
+ \ {
+ \ 'lnum': 8,
+ \ 'col': 3,
+ \ 'type': 'W',
+ \ 'text': 'Unknown property ''fill-opacity''.',
+ \ },
+ \ ],
+ \ ale#handlers#css#HandleCSSLintFormat(42, [
+ \ 'something.css: line 7, col 3, Warning - Unknown property ''fill''.',
+ \ 'something.css: line 8, col 3, Warning - Unknown property ''fill-opacity''.',
\ ])
Execute (HandlePEP8Format should handle the correct lines of output):