summaryrefslogtreecommitdiff
path: root/src/testdir/test_menu.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-03 23:31:24 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-03 23:31:24 +0100
commit2d6c8002729821acc54a4de41d5c5f3d50594973 (patch)
tree743f2e6ba37cdb4672dc1686267cf92bf3453cc4 /src/testdir/test_menu.vim
parent47707f6f34007dd803c75addbbd578fd37a74a92 (diff)
downloadvim-git-2d6c8002729821acc54a4de41d5c5f3d50594973.tar.gz
patch 7.4.1046v7.4.1046
Problem: No test coverage for menus. Solution: Load the standard menus and check there is no error.
Diffstat (limited to 'src/testdir/test_menu.vim')
-rw-r--r--src/testdir/test_menu.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_menu.vim b/src/testdir/test_menu.vim
new file mode 100644
index 000000000..be559467c
--- /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