comparison src/testdir/test_gui.vim @ 16121:060b58b492a5 v8.1.1065

patch 8.1.1065: no test for using and deleting menu in the GUI commit https://github.com/vim/vim/commit/47cf1cc2576b576898f25cea325139bdbba90fe6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 28 22:04:56 2019 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Mar 2019 22:15:06 +0100
parents 4fac64b51d74
children 1fbb0a33b074
comparison
equal deleted inserted replaced
16120:de996330e189 16121:060b58b492a5
705 set guioptions& 705 set guioptions&
706 set wrap& 706 set wrap&
707 bwipe! 707 bwipe!
708 endfunc 708 endfunc
709 709
710 func Test_menu()
711 " Check Help menu exists
712 let help_menu = execute('menu Help')
713 call assert_match('Overview', help_menu)
714
715 " Check Help menu works
716 emenu Help.Overview
717 call assert_equal('help', &buftype)
718 close
719
720 " Check deleting menu doesn't cause trouble.
721 aunmenu Help
722 call assert_fails('menu Help', 'E329:')
723 endfunc
724
710 func Test_set_guipty() 725 func Test_set_guipty()
711 let guipty_saved = &guipty 726 let guipty_saved = &guipty
712 727
713 " Default Value 728 " Default Value
714 set guipty& 729 set guipty&