Fix some random test issues for Windows
This commit is contained in:
@@ -2,12 +2,14 @@ Before:
|
||||
Save g:ale_set_loclist
|
||||
Save g:ale_set_quickfix
|
||||
Save g:ale_buffer_info
|
||||
Save g:ale_set_lists_synchronously
|
||||
|
||||
let g:ale_buffer_info = {}
|
||||
let g:ale_set_loclist = 0
|
||||
let g:ale_set_quickfix = 0
|
||||
let g:ale_set_lists_synchronously = 1
|
||||
|
||||
silent! cd /testplugin/test
|
||||
call ale#test#SetDirectory('/testplugin/test')
|
||||
|
||||
After:
|
||||
Restore
|
||||
@@ -15,6 +17,8 @@ After:
|
||||
call setloclist(0, [])
|
||||
call setqflist([])
|
||||
|
||||
call ale#test#RestoreDirectory()
|
||||
|
||||
Execute(The loclist titles should be set appropriately):
|
||||
silent noautocmd file foo
|
||||
|
||||
@@ -37,7 +41,9 @@ Execute(The loclist titles should be set appropriately):
|
||||
\}], getloclist(0)
|
||||
|
||||
if !has('nvim')
|
||||
AssertEqual {'title': getcwd() . '/foo'}, getloclist(0, {'title': ''})
|
||||
AssertEqual
|
||||
\ {'title': ale#path#Winify(getcwd() . '/foo')},
|
||||
\ getloclist(0, {'title': ''})
|
||||
endif
|
||||
|
||||
Execute(The quickfix titles should be set appropriately):
|
||||
@@ -65,5 +71,7 @@ Execute(The quickfix titles should be set appropriately):
|
||||
\}], getqflist()
|
||||
|
||||
if !has('nvim')
|
||||
AssertEqual {'title': getcwd() . '/foo'}, getqflist({'title': ''})
|
||||
AssertEqual
|
||||
\ {'title': ale#path#Winify(getcwd() . '/foo')},
|
||||
\ getqflist({'title': ''})
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user