summaryrefslogtreecommitdiff
path: root/test/test_lint_error_delay.vader
blob: cf73b2c012dfa71234c12b7297655b92f60eeed3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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()