patch 9.1.1290: tests: missing cleanup in test_filetype.vim
Problem: tests: missing cleanup in test_filetype.vim, wrong name in
test_plugin_matchparen
Solution: Add :bwipe corresponding to :split, rename test case
closes: #17088
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index e2286ab..b3e60e2 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -2814,6 +2814,7 @@
call writefile(['x = findgen(100)/10'], 'Xfile.pro', 'D')
split Xfile.pro
call assert_equal('idlang', &filetype)
+ bwipe!
filetype off
endfunc
@@ -2847,6 +2848,7 @@
call writefile(['%data = (1, 2, 3);'], 'Xfile.pl', 'D')
split Xfile.pl
call assert_equal('perl', &filetype)
+ bwipe!
filetype off
endfunc
@@ -2892,6 +2894,7 @@
call writefile(['* org Headline', '*some bold text*', '/some italic text/'], 'Xfile.org', 'D')
split Xfile.org
call assert_equal('org', &filetype)
+ bwipe!
filetype off
endfunc
diff --git a/src/testdir/test_plugin_matchparen.vim b/src/testdir/test_plugin_matchparen.vim
index dca6e32..74563a1 100644
--- a/src/testdir/test_plugin_matchparen.vim
+++ b/src/testdir/test_plugin_matchparen.vim
@@ -178,7 +178,7 @@
endfunc
" Test for the WinScrolled event
-func Test_scroll_winenter()
+func Test_scroll_winscrolled()
CheckScreendump
let lines =<< trim END