summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-04-22 15:53:01 +0100
committerw0rp <devw0rp@gmail.com>2018-04-22 15:53:01 +0100
commit87ad4dfbe78665029521667afb2f159f3865523b (patch)
treeb90164f51ac80c22c6bf2f82e60ecf60227cc33a /test
parentd8a673515a8ec9fd102d6da8d8fa499ae2770f11 (diff)
downloadale-87ad4dfbe78665029521667afb2f159f3865523b.zip
Implement a preview window for selecting locations to open
Diffstat (limited to 'test')
-rw-r--r--test/test_go_to_definition.vader7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test_go_to_definition.vader b/test/test_go_to_definition.vader
index b77a75ac..5bd75675 100644
--- a/test/test_go_to_definition.vader
+++ b/test/test_go_to_definition.vader
@@ -7,9 +7,9 @@ Before:
let g:message_list = []
let g:expr_list = []
- runtime autoload/ale/definition.vim
runtime autoload/ale/linter.vim
runtime autoload/ale/lsp.vim
+ runtime autoload/ale/util.vim
function! ale#linter#StartLSP(buffer, linter, callback) abort
let g:Callback = a:callback
@@ -26,11 +26,12 @@ Before:
return 42
endfunction
- function! ale#definition#Execute(expr) abort
+ function! ale#util#Execute(expr) abort
call add(g:expr_list, a:expr)
endfunction
After:
+ call ale#definition#SetMap({})
call ale#test#RestoreDirectory()
call ale#linter#Reset()
@@ -40,9 +41,9 @@ After:
unlet! g:expr_list
unlet! b:ale_linters
- runtime autoload/ale/definition.vim
runtime autoload/ale/linter.vim
runtime autoload/ale/lsp.vim
+ runtime autoload/ale/util.vim
Execute(Other messages for the tsserver handler should be ignored):
call ale#definition#HandleTSServerResponse(1, {'command': 'foo'})