summaryrefslogtreecommitdiff
path: root/test/test_lint_error_delay.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-04-12 20:31:33 +0100
committerw0rp <devw0rp@gmail.com>2018-04-12 20:31:45 +0100
commit0cd8e8630b69613df3a2a65fdd830364de157129 (patch)
tree43f28b61ee1893537999007e0cb5df6a0708992b /test/test_lint_error_delay.vader
parent3401a4e8ea35608d90a6cf709a790a37f112d201 (diff)
downloadale-0cd8e8630b69613df3a2a65fdd830364de157129.zip
#1497 Tolerate important ALE variables being undefined for some reason when viewing buffers like git commits
Diffstat (limited to 'test/test_lint_error_delay.vader')
-rw-r--r--test/test_lint_error_delay.vader10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/test_lint_error_delay.vader b/test/test_lint_error_delay.vader
index 7f081794..05664899 100644
--- a/test/test_lint_error_delay.vader
+++ b/test/test_lint_error_delay.vader
@@ -1,11 +1,13 @@
Before:
- Save g:ale_filetype_blacklist
+ runtime autoload/ale.vim
- " Delete some variable which should be defined.
- unlet! g:ale_filetype_blacklist
+ " Replace one of the key ALE functions and make it throw.
+ function! ale#FileTooLarge() abort
+ throw 'broken'
+ endfunction
After:
- Restore
+ runtime autoload/ale.vim
call ale#ResetErrorDelays()