only need to check the opening direction is correct

This commit is contained in:
LittleQ
2013-09-15 02:06:17 +08:00
parent b8edeef966
commit aa56af0d9c

View File

@@ -135,4 +135,35 @@ describe 'goto_with_buffers'
end end
end end
describe 'goto_with_splits'
before
set filetype=python
let g:jedi#use_splits_not_buffers = 'left'
end
after
bd!
bd!
end
it 'follow_import'
put = ['import subprocess', 'subprocess']
silent normal G\g
Expect getline('.') == 'import subprocess'
Expect line('.') == 2
Expect col('.') == 8
silent normal G\d
Expect g:current_buffer_is_module('subprocess') == 1
Expect line('.') == 1
Expect col('.') == 1
wincmd l
Expect bufname('%') == ''
end
end
" vim: et:ts=4:sw=4 " vim: et:ts=4:sw=4