commit 7c15987444ff4a6be10bb8a6ca9c3694a16ad0b5
parent dc00b379658ff7d545bd49161a7e81d83474b194
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri, 11 Apr 2025 08:10:50 +0800
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
https://github.com/vim/vim/commit/b0e19f9e1b43328158784ad2429880e0370b5e7b
Diffstat:
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/functional/legacy/matchparen_spec.lua b/test/functional/legacy/matchparen_spec.lua
@@ -262,7 +262,7 @@ describe('matchparen', function()
]])
end)
- -- oldtest: Test_scroll_winenter()
+ -- oldtest: Test_scroll_winscrolled()
it('with scrolling', function()
local screen = Screen.new(30, 7)
exec([[
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim
@@ -2808,6 +2808,7 @@ func Test_pro_file()
call writefile(['x = findgen(100)/10'], 'Xfile.pro', 'D')
split Xfile.pro
call assert_equal('idlang', &filetype)
+ bwipe!
filetype off
endfunc
@@ -2841,6 +2842,7 @@ func Test_pl_file()
call writefile(['%data = (1, 2, 3);'], 'Xfile.pl', 'D')
split Xfile.pl
call assert_equal('perl', &filetype)
+ bwipe!
filetype off
endfunc
diff --git a/test/old/testdir/test_plugin_matchparen.vim b/test/old/testdir/test_plugin_matchparen.vim
@@ -178,7 +178,7 @@ func Test_matchparen_ignore_sh_case()
endfunc
" Test for the WinScrolled event
-func Test_scroll_winenter()
+func Test_scroll_winscrolled()
CheckScreendump
let lines =<< trim END