forked from aniani/vim
patch 8.1.1065: no test for using and deleting menu in the GUI
Problem: No test for using and deleting menu in the GUI. Solution: Add a test.
This commit is contained in:
@@ -707,6 +707,21 @@ func Test_scrollbars()
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
func Test_menu()
|
||||
" Check Help menu exists
|
||||
let help_menu = execute('menu Help')
|
||||
call assert_match('Overview', help_menu)
|
||||
|
||||
" Check Help menu works
|
||||
emenu Help.Overview
|
||||
call assert_equal('help', &buftype)
|
||||
close
|
||||
|
||||
" Check deleting menu doesn't cause trouble.
|
||||
aunmenu Help
|
||||
call assert_fails('menu Help', 'E329:')
|
||||
endfunc
|
||||
|
||||
func Test_set_guipty()
|
||||
let guipty_saved = &guipty
|
||||
|
||||
|
@@ -775,6 +775,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1065,
|
||||
/**/
|
||||
1064,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user