mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 19:24:36 +08:00
tests goto tabs
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
let mapleader = '\'
|
let mapleader = '\'
|
||||||
source plugin/jedi.vim
|
source plugin/jedi.vim
|
||||||
|
source test/utils.vim
|
||||||
|
|
||||||
describe 'goto_simple'
|
describe 'goto_simple'
|
||||||
before
|
before
|
||||||
@@ -21,7 +22,6 @@ describe 'goto_simple'
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'goto_definitions'
|
it 'goto_definitions'
|
||||||
echo &runtimepath
|
|
||||||
silent normal \d
|
silent normal \d
|
||||||
Expect line('.') == 1
|
Expect line('.') == 1
|
||||||
"Expect col('.') == 5
|
"Expect col('.') == 5
|
||||||
@@ -45,4 +45,29 @@ describe 'goto_simple'
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe 'goto_with_new_tabs'
|
||||||
|
before
|
||||||
|
new
|
||||||
|
set filetype=python
|
||||||
|
end
|
||||||
|
|
||||||
|
after
|
||||||
|
close!
|
||||||
|
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
|
||||||
|
Expect tabpagenr('$') == 2
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
" vim: et:ts=4:sw=4
|
" vim: et:ts=4:sw=4
|
||||||
|
|||||||
Reference in New Issue
Block a user