mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 10:35:38 -07:00
tests: harden/fix closing/counting of windows
If "PlugUpdate still should not care" fails the window is not closed and the count is off afterwards. This try/finally should get added to more tests probably.
This commit is contained in:
parent
e6a775e0df
commit
c665c64da4
@ -689,9 +689,12 @@ Execute (PlugUpdate still should not care):
|
|||||||
Execute (PlugStatus with no error):
|
Execute (PlugStatus with no error):
|
||||||
PlugStatus
|
PlugStatus
|
||||||
Log getline(1, '$')
|
Log getline(1, '$')
|
||||||
AssertExpect 'x fzf', 0
|
try
|
||||||
AssertExpect 'Not found', 0
|
AssertExpect 'x fzf', 0
|
||||||
q
|
AssertExpect 'Not found', 0
|
||||||
|
finally
|
||||||
|
q
|
||||||
|
endtry
|
||||||
|
|
||||||
Execute (Check &rtp after SomeCommand):
|
Execute (Check &rtp after SomeCommand):
|
||||||
Log &rtp
|
Log &rtp
|
||||||
@ -1606,6 +1609,8 @@ Execute (#530 - Comparison of incompatible git URIs):
|
|||||||
Assert !CompareURI('https://github.com/junegunn/vim-plug.git', 'https://github.com:12345/junegunn/vim-plug.git')
|
Assert !CompareURI('https://github.com/junegunn/vim-plug.git', 'https://github.com:12345/junegunn/vim-plug.git')
|
||||||
|
|
||||||
Execute (#532 - Reuse plug window):
|
Execute (#532 - Reuse plug window):
|
||||||
|
AssertEqual 1, winnr('$'), 'Starts with 1 window'
|
||||||
|
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
Plug 'junegunn/goyo.vim'
|
Plug 'junegunn/goyo.vim'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
Loading…
Reference in New Issue
Block a user