1" Tests specifically for the GUI features/options that need to be set up at 2" startup to take effect at runtime. 3 4source shared.vim 5source check.vim 6CheckCanRunGui 7 8source setup_gui.vim 9 10func Setup() 11 call GUISetUpCommon() 12endfunc 13 14func TearDown() 15 call GUITearDownCommon() 16endfunc 17 18" Ignore the "failed to create input context" error. 19call test_ignore_error('E285:') 20 21" Start the GUI now, in the foreground. 22gui -f 23 24func Test_set_guiheadroom() 25 CheckX11BasedGui 26 27 " The 'expected' value must be consistent with the value specified with 28 " gui_init.vim. 29 call assert_equal(0, &guiheadroom) 30endfunc 31 32func Test_set_guioptions_for_M() 33 sleep 200ms 34 " Check if the 'M' option is included. 35 call assert_match('.*M.*', &guioptions) 36endfunc 37 38func Test_set_guioptions_for_p() 39 CheckX11BasedGui 40 41 sleep 200ms 42 " Check if the 'p' option is included. 43 call assert_match('.*p.*', &guioptions) 44endfunc 45 46" vim: shiftwidth=2 sts=2 expandtab 47