changeset 7488:6f14d7da2d8a v7.4.1046

commit https://github.com/vim/vim/commit/2d6c8002729821acc54a4de41d5c5f3d50594973 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 3 23:31:24 2016 +0100 patch 7.4.1046 Problem: No test coverage for menus. Solution: Load the standard menus and check there is no error.
author Christian Brabandt <cb@256bit.org>
date Sun, 03 Jan 2016 23:45:03 +0100
parents fdd7845b8268
children d830556a7d4a
files src/testdir/test_alot.vim src/testdir/test_menu.vim src/version.c
diffstat 3 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_alot.vim
+++ b/src/testdir/test_alot.vim
@@ -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
new file mode 100644
--- /dev/null
+++ b/src/testdir/test_menu.vim
@@ -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
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1046,
+/**/
     1045,
 /**/
     1044,