2017-08-08 23:05:55 +00:00
|
|
|
Before:
|
2018-04-12 19:31:33 +00:00
|
|
|
runtime autoload/ale.vim
|
2017-08-08 23:05:55 +00:00
|
|
|
|
2018-04-12 19:31:33 +00:00
|
|
|
" Replace one of the key ALE functions and make it throw.
|
|
|
|
function! ale#FileTooLarge() abort
|
|
|
|
throw 'broken'
|
|
|
|
endfunction
|
2017-08-08 23:05:55 +00:00
|
|
|
|
|
|
|
After:
|
2018-04-12 19:31:33 +00:00
|
|
|
runtime autoload/ale.vim
|
2017-08-08 23:05:55 +00:00
|
|
|
|
|
|
|
call ale#ResetErrorDelays()
|
|
|
|
|
2018-05-28 16:38:14 +00:00
|
|
|
Given foobar(An empty file):
|
2017-08-08 23:05:55 +00:00
|
|
|
Execute(ALE should stop queuing for a while after exceptions are thrown):
|
|
|
|
AssertThrows call ale#Queue(100)
|
|
|
|
call ale#Queue(100)
|
|
|
|
|
|
|
|
Execute(ALE should stop linting for a while after exceptions are thrown):
|
|
|
|
AssertThrows call ale#Lint()
|
|
|
|
call ale#Lint()
|
2017-08-12 09:47:06 +00:00
|
|
|
|
|
|
|
Execute(ALE should stop echoing messages for a while after exceptions are thrown):
|
|
|
|
AssertThrows call ale#cursor#EchoCursorWarning()
|
|
|
|
call ale#cursor#EchoCursorWarning()
|