summaryrefslogtreecommitdiff
path: root/test/test_list_titles.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-09-11 00:47:27 +0100
committerw0rp <devw0rp@gmail.com>2017-09-11 00:47:27 +0100
commitb6a487ccf9318e449a85bd5b43d7a81b9d17d2be (patch)
tree3fc370f84a5295994d38b54d2eef2468a1a0a9e2 /test/test_list_titles.vader
parentcb8a140141d6365f48e66dfaaaa8f9957f0dc832 (diff)
downloadale-b6a487ccf9318e449a85bd5b43d7a81b9d17d2be.zip
Fix some random test issues for Windows
Diffstat (limited to 'test/test_list_titles.vader')
-rw-r--r--test/test_list_titles.vader14
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