mirror of
https://github.com/dense-analysis/ale.git
synced 2026-08-13 11:20:59 +08:00
#2017 Simplify lint cycles for supporting other sources later
This commit is contained in:
@@ -14,7 +14,7 @@ After:
|
||||
catch
|
||||
endtry
|
||||
|
||||
Given foobar(An empty file):
|
||||
Given testft(An empty file):
|
||||
Execute(Run a lint cycle, and check that a variable is set in the autocmd):
|
||||
augroup VaderTest
|
||||
autocmd!
|
||||
@@ -22,7 +22,7 @@ Execute(Run a lint cycle, and check that a variable is set in the autocmd):
|
||||
autocmd User ALELintPost let g:post_success = 1
|
||||
augroup end
|
||||
|
||||
call ale#Lint()
|
||||
call ale#Queue(0)
|
||||
|
||||
AssertEqual g:pre_success, 1
|
||||
AssertEqual g:post_success, 1
|
||||
@@ -30,10 +30,10 @@ Execute(Run a lint cycle, and check that a variable is set in the autocmd):
|
||||
Execute(b:ale_linted should be increased after each lint cycle):
|
||||
AssertEqual get(b:, 'ale_linted'), 0
|
||||
|
||||
call ale#Lint()
|
||||
call ale#Queue(0)
|
||||
|
||||
AssertEqual get(b:, 'ale_linted'), 1
|
||||
|
||||
call ale#Lint()
|
||||
call ale#Queue(0)
|
||||
|
||||
AssertEqual get(b:, 'ale_linted'), 2
|
||||
|
||||
Reference in New Issue
Block a user