Fix some random test issues for Windows

This commit is contained in:
w0rp
2017-09-11 00:47:27 +01:00
parent cb8a140141
commit b6a487ccf9
13 changed files with 141 additions and 93 deletions

View File

@@ -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