2017-03-06 23:15:28 +00:00
|
|
|
Execute(The after file should have been loaded for real):
|
2017-05-12 19:38:52 +00:00
|
|
|
" FIXME: Fix these tests in NeoVim.
|
|
|
|
if !has('nvim')
|
|
|
|
Assert has_key(g:, 'loaded_ale_after'), 'g:loaded_ale_after was not set!'
|
|
|
|
Assert g:loaded_ale_after
|
|
|
|
endif
|
2017-03-06 23:15:28 +00:00
|
|
|
|
|
|
|
Before:
|
|
|
|
silent! cd /testplugin/test
|
|
|
|
cd ..
|
|
|
|
unlet! g:loaded_ale_after
|
|
|
|
|
|
|
|
After:
|
|
|
|
cd test
|
|
|
|
let g:loaded_ale_after = 1
|
|
|
|
let g:ale_emit_conflict_warnings = 1
|
|
|
|
unlet! g:loaded_syntastic_plugin
|
|
|
|
unlet! g:loaded_neomake
|
|
|
|
unlet! g:loaded_validator_plugin
|
|
|
|
|
|
|
|
Execute(ALE should not warn when nothing extra is installed):
|
|
|
|
" Nothing should be thrown when loading the after file.
|
|
|
|
source after/plugin/ale.vim
|
|
|
|
|
|
|
|
Execute(ALE should warn users when Syntastic is installed):
|
|
|
|
let g:loaded_syntastic_plugin = 1
|
|
|
|
|
|
|
|
AssertThrows source after/plugin/ale.vim
|
|
|
|
AssertEqual
|
|
|
|
\ 'ALE conflicts with Syntastic'
|
|
|
|
\ . '. Uninstall it, or disable this warning with '
|
|
|
|
\ . '`let g:ale_emit_conflict_warnings = 0` in your vimrc file, '
|
|
|
|
\ . '*before* plugins are loaded.',
|
|
|
|
\ g:vader_exception
|
|
|
|
|
|
|
|
Execute(ALE should not warn about Syntastic when the flag is set):
|
|
|
|
let g:loaded_syntastic_plugin = 1
|
|
|
|
let g:ale_emit_conflict_warnings = 0
|
|
|
|
|
|
|
|
source after/plugin/ale.vim
|
|
|
|
|
|
|
|
Execute(ALE should warn users when Neomake is installed):
|
|
|
|
let g:loaded_neomake = 1
|
|
|
|
|
|
|
|
AssertThrows source after/plugin/ale.vim
|
|
|
|
AssertEqual
|
|
|
|
\ 'ALE conflicts with Neomake'
|
|
|
|
\ . '. Uninstall it, or disable this warning with '
|
|
|
|
\ . '`let g:ale_emit_conflict_warnings = 0` in your vimrc file, '
|
|
|
|
\ . '*before* plugins are loaded.',
|
|
|
|
\ g:vader_exception
|
|
|
|
|
|
|
|
Execute(ALE should not warn about Neomake when the flag is set):
|
|
|
|
let g:loaded_neomake = 1
|
|
|
|
let g:ale_emit_conflict_warnings = 0
|
|
|
|
|
|
|
|
source after/plugin/ale.vim
|
|
|
|
|
|
|
|
Execute(ALE should warn users when Validator is installed):
|
|
|
|
let g:loaded_validator_plugin = 1
|
|
|
|
|
|
|
|
AssertThrows source after/plugin/ale.vim
|
|
|
|
AssertEqual
|
|
|
|
\ 'ALE conflicts with Validator'
|
|
|
|
\ . '. Uninstall it, or disable this warning with '
|
|
|
|
\ . '`let g:ale_emit_conflict_warnings = 0` in your vimrc file, '
|
|
|
|
\ . '*before* plugins are loaded.',
|
|
|
|
\ g:vader_exception
|
|
|
|
|
|
|
|
Execute(ALE should not warn about Validator when the flag is set):
|
|
|
|
let g:loaded_validator_plugin = 1
|
|
|
|
let g:ale_emit_conflict_warnings = 0
|
|
|
|
|
|
|
|
source after/plugin/ale.vim
|