Remove CallWithCooldown functions to save on time

This commit is contained in:
w0rp
2018-06-20 08:34:42 +01:00
parent 82ea36576c
commit 9674132933
3 changed files with 16 additions and 90 deletions

View File

@@ -1,25 +0,0 @@
Before:
runtime autoload/ale.vim
" Replace one of the key ALE functions and make it throw.
function! ale#FileTooLarge(buffer) abort
throw 'broken'
endfunction
After:
runtime autoload/ale.vim
call ale#ResetErrorDelays()
Given foobar(An empty file):
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()
Execute(ALE should stop echoing messages for a while after exceptions are thrown):
AssertThrows call ale#cursor#EchoCursorWarning()
call ale#cursor#EchoCursorWarning()