mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
goto definition tests for multiple results (opens quickfix window)
This commit is contained in:
@@ -71,6 +71,22 @@ describe 'goto_with_tabs'
|
||||
tabprevious
|
||||
Expect bufname('%') == ''
|
||||
end
|
||||
|
||||
it 'multi_definitions'
|
||||
put = ['import tokenize']
|
||||
silent normal G$\d
|
||||
Expect g:current_buffer_is_module('tokenize') == 0
|
||||
Expect g:current_buffer_is_module('token') == 0
|
||||
execute "normal \<CR>"
|
||||
Expect tabpagenr('$') == 2
|
||||
Expect g:current_buffer_is_module('token') == 1
|
||||
|
||||
bd
|
||||
silent normal G$\d
|
||||
execute "normal j\<CR>"
|
||||
Expect tabpagenr('$') == 2
|
||||
Expect g:current_buffer_is_module('tokenize') == 1
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -101,6 +117,23 @@ describe 'goto_with_buffers'
|
||||
Expect line('.') == 1
|
||||
Expect col('.') == 1
|
||||
end
|
||||
|
||||
it 'multi_definitions'
|
||||
set hidden
|
||||
put = ['import tokenize']
|
||||
silent normal G$\d
|
||||
Expect g:current_buffer_is_module('tokenize') == 0
|
||||
Expect g:current_buffer_is_module('token') == 0
|
||||
execute "normal \<CR>"
|
||||
Expect tabpagenr('$') == 1
|
||||
Expect g:current_buffer_is_module('token') == 1
|
||||
|
||||
bd
|
||||
silent normal G$\d
|
||||
execute "normal j\<CR>"
|
||||
Expect tabpagenr('$') == 1
|
||||
Expect g:current_buffer_is_module('tokenize') == 1
|
||||
end
|
||||
end
|
||||
|
||||
" vim: et:ts=4:sw=4
|
||||
|
||||
Reference in New Issue
Block a user