diff options
author | w0rp <devw0rp@gmail.com> | 2017-08-09 00:05:55 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-08-09 00:05:55 +0100 |
commit | 670858f7743ad42ee83d6f9aab162b16069e4395 (patch) | |
tree | 0001bd18c3ee2eb231856535c47a1d31e9b0aaa4 /test/test_lint_error_delay.vader | |
parent | ac8cc6d9911376472ed85928f15b89a7cfa62516 (diff) | |
download | ale-670858f7743ad42ee83d6f9aab162b16069e4395.zip |
Fix #468 - Add a cool down period for when things go wrong
Diffstat (limited to 'test/test_lint_error_delay.vader')
-rw-r--r-- | test/test_lint_error_delay.vader | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/test_lint_error_delay.vader b/test/test_lint_error_delay.vader new file mode 100644 index 00000000..32d82715 --- /dev/null +++ b/test/test_lint_error_delay.vader @@ -0,0 +1,18 @@ +Before: + Save g:ale_filetype_blacklist + + " Delete some variable which should be defined. + unlet! g:ale_filetype_blacklist + +After: + Restore + + call ale#ResetErrorDelays() + +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() |