2017-05-18 04:31:12 -04:00
|
|
|
Before:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#SetUpLinterTest('xml', 'xmllint')
|
2017-05-18 04:31:12 -04:00
|
|
|
|
|
|
|
After:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-11-15 12:21:17 -05:00
|
|
|
|
2017-05-18 04:31:12 -04:00
|
|
|
Execute(The xml xmllint command callback should return the correct default string):
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'xmllint', ale#Escape('xmllint') . ' --noout -'
|
2017-05-18 04:31:12 -04:00
|
|
|
|
|
|
|
Execute(The xml xmllint command callback should let you set options):
|
|
|
|
let g:ale_xml_xmllint_options = '--xinclude --postvalid'
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'xmllint',
|
|
|
|
\ ale#Escape('xmllint') . ' --xinclude --postvalid --noout -'
|
2017-05-18 04:31:12 -04:00
|
|
|
|
|
|
|
Execute(The xmllint executable should be configurable):
|
|
|
|
let g:ale_xml_xmllint_executable = '~/.local/bin/xmllint'
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter '~/.local/bin/xmllint',
|
|
|
|
\ ale#Escape('~/.local/bin/xmllint') . ' --noout -'
|