mirror of
https://github.com/neovim/neovim.git
synced 2026-08-31 03:13:48 +00:00
vim-patch:9.1.1290: tests: missing cleanup in test_filetype.vim (#33420)
Problem: tests: missing cleanup in test_filetype.vim, wrong name in
test_plugin_matchparen
Solution: Add :bwipe corresponding to :split, rename test case
closes: vim/vim#17088
b0e19f9e1b
This commit is contained in:
@@ -262,7 +262,7 @@ describe('matchparen', function()
|
|||||||
]])
|
]])
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- oldtest: Test_scroll_winenter()
|
-- oldtest: Test_scroll_winscrolled()
|
||||||
it('with scrolling', function()
|
it('with scrolling', function()
|
||||||
local screen = Screen.new(30, 7)
|
local screen = Screen.new(30, 7)
|
||||||
exec([[
|
exec([[
|
||||||
|
|||||||
@@ -2808,6 +2808,7 @@ func Test_pro_file()
|
|||||||
call writefile(['x = findgen(100)/10'], 'Xfile.pro', 'D')
|
call writefile(['x = findgen(100)/10'], 'Xfile.pro', 'D')
|
||||||
split Xfile.pro
|
split Xfile.pro
|
||||||
call assert_equal('idlang', &filetype)
|
call assert_equal('idlang', &filetype)
|
||||||
|
bwipe!
|
||||||
|
|
||||||
filetype off
|
filetype off
|
||||||
endfunc
|
endfunc
|
||||||
@@ -2841,6 +2842,7 @@ func Test_pl_file()
|
|||||||
call writefile(['%data = (1, 2, 3);'], 'Xfile.pl', 'D')
|
call writefile(['%data = (1, 2, 3);'], 'Xfile.pl', 'D')
|
||||||
split Xfile.pl
|
split Xfile.pl
|
||||||
call assert_equal('perl', &filetype)
|
call assert_equal('perl', &filetype)
|
||||||
|
bwipe!
|
||||||
|
|
||||||
filetype off
|
filetype off
|
||||||
endfunc
|
endfunc
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ func Test_matchparen_ignore_sh_case()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Test for the WinScrolled event
|
" Test for the WinScrolled event
|
||||||
func Test_scroll_winenter()
|
func Test_scroll_winscrolled()
|
||||||
CheckScreendump
|
CheckScreendump
|
||||||
|
|
||||||
let lines =<< trim END
|
let lines =<< trim END
|
||||||
|
|||||||
Reference in New Issue
Block a user