1" Test that the system menu can be loaded. 2 3if !has('menu') 4 finish 5endif 6 7func Test_load_menu() 8 try 9 source $VIMRUNTIME/menu.vim 10 catch 11 call assert_false(1, 'error while loading menus: ' . v:exception) 12 endtry 13 source $VIMRUNTIME/delmenu.vim 14endfunc 15 16func Test_translate_menu() 17 if !has('multi_lang') 18 return 19 endif 20 if !filereadable($VIMRUNTIME . '/lang/menu_de_de.latin1.vim') 21 throw 'Skipped: translated menu not found' 22 endif 23 24 set langmenu=de_de 25 source $VIMRUNTIME/menu.vim 26 call assert_match('browse confirm w', execute(':menu Datei.Speichern')) 27 28 source $VIMRUNTIME/delmenu.vim 29endfunc 30