mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 10:54:22 +08:00
added tests for checking other goto will perform in only one window, no other split buffer will be opened accidentially
This commit is contained in:
@@ -67,6 +67,7 @@ describe 'goto_with_tabs'
|
||||
Expect line('.') == 1
|
||||
Expect col('.') == 1
|
||||
Expect tabpagenr('$') == 2
|
||||
Expect winnr('$') == 1
|
||||
tabprevious
|
||||
Expect bufname('%') == ''
|
||||
end
|
||||
@@ -78,12 +79,14 @@ describe 'goto_with_tabs'
|
||||
Expect g:current_buffer_is_module('token') == 0
|
||||
execute "normal \<CR>"
|
||||
Expect tabpagenr('$') == 2
|
||||
Expect winnr('$') == 1
|
||||
Expect g:current_buffer_is_module('token') == 1
|
||||
|
||||
bd
|
||||
silent normal G$\d
|
||||
execute "normal j\<CR>"
|
||||
Expect tabpagenr('$') == 2
|
||||
Expect winnr('$') == 1
|
||||
Expect g:current_buffer_is_module('tokenize') == 1
|
||||
end
|
||||
end
|
||||
@@ -112,6 +115,7 @@ describe 'goto_with_buffers'
|
||||
set hidden
|
||||
call jedi#goto_assignments()
|
||||
Expect g:current_buffer_is_module('os') == 1
|
||||
Expect winnr('$') == 1
|
||||
Expect tabpagenr('$') == 1
|
||||
Expect line('.') == 1
|
||||
Expect col('.') == 1
|
||||
@@ -125,12 +129,14 @@ describe 'goto_with_buffers'
|
||||
Expect g:current_buffer_is_module('token') == 0
|
||||
execute "normal \<CR>"
|
||||
Expect tabpagenr('$') == 1
|
||||
Expect winnr('$') == 1
|
||||
Expect g:current_buffer_is_module('token') == 1
|
||||
|
||||
bd
|
||||
silent normal G$\d
|
||||
execute "normal j\<CR>"
|
||||
Expect tabpagenr('$') == 1
|
||||
Expect winnr('$') == 1
|
||||
Expect g:current_buffer_is_module('tokenize') == 1
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user