forked from aniani/vim
patch 7.4.1046
Problem: No test coverage for menus. Solution: Load the standard menus and check there is no error.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
source test_backspace_opt.vim
|
||||
source test_lispwords.vim
|
||||
source test_menu.vim
|
||||
source test_searchpos.vim
|
||||
source test_set.vim
|
||||
source test_sort.vim
|
||||
|
||||
9
src/testdir/test_menu.vim
Normal file
9
src/testdir/test_menu.vim
Normal file
@@ -0,0 +1,9 @@
|
||||
" Test that the system menu can be loaded.
|
||||
|
||||
func Test_load_menu()
|
||||
try
|
||||
source $VIMRUNTIME/menu.vim
|
||||
catch
|
||||
call assert_false(1, 'error while loading menus: ' . v:exception)
|
||||
endtry
|
||||
endfunc
|
||||
@@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1046,
|
||||
/**/
|
||||
1045,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user