diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-03-28 22:04:56 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-03-28 22:04:56 +0100 |
commit | 47cf1cc2576b576898f25cea325139bdbba90fe6 (patch) | |
tree | c31b69efeb3c2e9d20803975f20a8e9454c0b364 | |
parent | c701f320e83b33e9ee67d1f7d67d9c1a9a99974d (diff) | |
download | vim-git-47cf1cc2576b576898f25cea325139bdbba90fe6.tar.gz |
patch 8.1.1065: no test for using and deleting menu in the GUIv8.1.1065
Problem: No test for using and deleting menu in the GUI.
Solution: Add a test.
-rw-r--r-- | src/testdir/test_gui.vim | 15 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/testdir/test_gui.vim b/src/testdir/test_gui.vim index f1f2cdd15..a372c1f9e 100644 --- a/src/testdir/test_gui.vim +++ b/src/testdir/test_gui.vim @@ -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 diff --git a/src/version.c b/src/version.c index b8b3c149e..be232842a 100644 --- a/src/version.c +++ b/src/version.c @@ -776,6 +776,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1065, +/**/ 1064, /**/ 1063, |