#2017 Simplify lint cycles for supporting other sources later

This commit is contained in:
w0rp
2018-10-29 11:29:21 +00:00
parent 9dbebf1cb3
commit 2846e86217
11 changed files with 56 additions and 90 deletions
+4 -4
View File
@@ -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