mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-26 05:51:08 +08:00
30
test/handler/test_xmllint_handler.vader
Normal file
30
test/handler/test_xmllint_handler.vader
Normal file
@@ -0,0 +1,30 @@
|
||||
Before:
|
||||
runtime ale_linters/xml/xmllint.vim
|
||||
|
||||
Execute(The xmllint handler should parse error messages correctly):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 1,
|
||||
\ 'col': 22,
|
||||
\ 'type': 'W',
|
||||
\ 'text': 'warning: Unsupported version ''dummy'''
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 34,
|
||||
\ 'col': 1,
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'parser error : Start tag expected, ''<'' not found'
|
||||
\ }
|
||||
\ ],
|
||||
\ ale_linters#xml#xmllint#Handle(1, [
|
||||
\ 'path/to/file.xml:1: warning: Unsupported version ''dummy''',
|
||||
\ '<?xml version="dummy"?>',
|
||||
\ ' ^',
|
||||
\ '-:34: parser error : Start tag expected, ''<'' not found',
|
||||
\ 'blahblah>',
|
||||
\ '^'
|
||||
\ ])
|
||||
|
||||
After:
|
||||
call ale#linter#Reset()
|
||||
Reference in New Issue
Block a user