1
0
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:
Bram Moolenaar
2019-03-28 22:04:56 +01:00
parent c701f320e8
commit 47cf1cc257
2 changed files with 17 additions and 0 deletions

View File

@@ -707,6 +707,21 @@ func Test_scrollbars()
bwipe! bwipe!
endfunc 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() func Test_set_guipty()
let guipty_saved = &guipty let guipty_saved = &guipty

View File

@@ -775,6 +775,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1065,
/**/ /**/
1064, 1064,
/**/ /**/