diff options
Diffstat (limited to 'src/testdir/test_gui_init.vim')
-rw-r--r-- | src/testdir/test_gui_init.vim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/testdir/test_gui_init.vim b/src/testdir/test_gui_init.vim index 811c6ecb23..21e5bb6a7a 100644 --- a/src/testdir/test_gui_init.vim +++ b/src/testdir/test_gui_init.vim @@ -36,3 +36,25 @@ func Test_set_guiheadroom() throw skipped endif endfunc + +func Test_set_guioptions_for_M() + sleep 200ms + " Check if the 'M' option is included. + call assert_match('.*M.*', &guioptions) +endfunc + +func Test_set_guioptions_for_p() + let skipped = '' + + if !g:x11_based_gui + let skipped = g:not_supported . '''p'' of guioptions' + else + sleep 200ms + " Check if the 'p' option is included. + call assert_match('.*p.*', &guioptions) + endif + + if !empty(skipped) + throw skipped + endif +endfunc |