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