summaryrefslogtreecommitdiff
path: root/test/test_go_to_definition.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-26 23:20:21 +0000
committerw0rp <devw0rp@gmail.com>2017-11-26 23:20:21 +0000
commitd4ea0423a2c65a626daca89880811416a9d02040 (patch)
tree0696bc73f0aec764a537ff4c49952285d72d2de3 /test/test_go_to_definition.vader
parentf311a46f794d303b25a71ab99299b78bd031b4dd (diff)
downloadale-d4ea0423a2c65a626daca89880811416a9d02040.zip
Fix go to definition tests on Windows
Diffstat (limited to 'test/test_go_to_definition.vader')
-rw-r--r--test/test_go_to_definition.vader16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test_go_to_definition.vader b/test/test_go_to_definition.vader
index 0b8afe31..1e0380fa 100644
--- a/test/test_go_to_definition.vader
+++ b/test/test_go_to_definition.vader
@@ -70,7 +70,7 @@ Execute(Other files should be jumped to for definition responses):
\ 'success': v:true,
\ 'body': [
\ {
- \ 'file': g:dir . '/completion_dummy_file',
+ \ 'file': ale#path#Winify(g:dir . '/completion_dummy_file'),
\ 'start': {'line': 3, 'offset': 7},
\ },
\ ],
@@ -95,7 +95,7 @@ Execute(Other files should be jumped to for definition responses in tabs too):
\ 'success': v:true,
\ 'body': [
\ {
- \ 'file': g:dir . '/completion_dummy_file',
+ \ 'file': ale#path#Winify(g:dir . '/completion_dummy_file'),
\ 'start': {'line': 3, 'offset': 7},
\ },
\ ],
@@ -150,7 +150,7 @@ Execute(Other files should be jumped to for LSP definition responses):
\ {
\ 'id': 3,
\ 'result': {
- \ 'uri': ale#path#ToURI(g:dir . '/completion_dummy_file'),
+ \ 'uri': ale#path#ToURI(ale#path#Winify(g:dir . '/completion_dummy_file')),
\ 'range': {
\ 'start': {'line': 2, 'character': 7},
\ },
@@ -173,7 +173,7 @@ Execute(Other files should be jumped to in tabs for LSP definition responses):
\ {
\ 'id': 3,
\ 'result': {
- \ 'uri': ale#path#ToURI(g:dir . '/completion_dummy_file'),
+ \ 'uri': ale#path#ToURI(ale#path#Winify(g:dir . '/completion_dummy_file')),
\ 'range': {
\ 'start': {'line': 2, 'character': 7},
\ },
@@ -183,7 +183,7 @@ Execute(Other files should be jumped to in tabs for LSP definition responses):
AssertEqual
\ [
- \ 'tabedit ' . fnameescape(g:dir . '/completion_dummy_file'),
+ \ 'tabedit ' . fnameescape(ale#path#Winify(g:dir . '/completion_dummy_file')),
\ ],
\ g:expr_list
AssertEqual [3, 7], getpos('.')[1:2]
@@ -197,13 +197,13 @@ Execute(Definition responses with lists should be handled):
\ 'id': 3,
\ 'result': [
\ {
- \ 'uri': ale#path#ToURI(g:dir . '/completion_dummy_file'),
+ \ 'uri': ale#path#ToURI(ale#path#Winify(g:dir . '/completion_dummy_file')),
\ 'range': {
\ 'start': {'line': 2, 'character': 7},
\ },
\ },
\ {
- \ 'uri': ale#path#ToURI(g:dir . '/other_file'),
+ \ 'uri': ale#path#ToURI(ale#path#Winify(g:dir . '/other_file')),
\ 'range': {
\ 'start': {'line': 20, 'character': 3},
\ },
@@ -214,7 +214,7 @@ Execute(Definition responses with lists should be handled):
AssertEqual
\ [
- \ 'edit ' . fnameescape(g:dir . '/completion_dummy_file'),
+ \ 'edit ' . fnameescape(ale#path#Winify(g:dir . '/completion_dummy_file')),
\ ],
\ g:expr_list
AssertEqual [3, 7], getpos('.')[1:2]