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:
LittleQ
2013-09-15 03:03:59 +08:00
parent a247e9b1c7
commit b8269d70d4

View File

@@ -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