diff options
Diffstat (limited to 'test/test_list_titles.vader')
-rw-r--r-- | test/test_list_titles.vader | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/test/test_list_titles.vader b/test/test_list_titles.vader index 74cb4bcc..e7295414 100644 --- a/test/test_list_titles.vader +++ b/test/test_list_titles.vader @@ -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 |