1" Tests specifically for the GUI features/options that need to be set up at 2" startup to take effect at runtime. 3 4if !has('gui') || ($DISPLAY == "" && !has('gui_running')) 5 finish 6endif 7 8source setup_gui.vim 9 10func Setup() 11 call GUISetUpCommon() 12endfunc 13 14func TearDown() 15 call GUITearDownCommon() 16endfunc 17 18" Make sure that the tests will be done with the GUI activated. 19gui -f 20 21func Test_set_guiheadroom() 22 let skipped = '' 23 24 if !g:x11_based_gui 25 let skipped = g:not_supported . 'guiheadroom' 26 else 27 " The 'expected' value must be consistent with the value specified with 28 " gui_init.vim. 29 call assert_equal(0, &guiheadroom) 30 endif 31 32 if !empty(skipped) 33 throw skipped 34 endif 35endfunc 36