Mercurial > vim
comparison src/testdir/test_gui_init.vim @ 10944:4e2cdce4576c v8.0.0361
patch 8.0.0361: GUI initialisation is not sufficiently tested
commit https://github.com/vim/vim/commit/8be2fbb6705dfb41d06d688701803d206c968404
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 23 19:32:47 2017 +0100
patch 8.0.0361: GUI initialisation is not sufficiently tested
Problem: GUI initialisation is not sufficiently tested.
Solution: Add the gui_init test. (Kazuki Kuriyama)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 23 Feb 2017 19:45:04 +0100 |
parents | |
children | 4df1647531a6 |
comparison
equal
deleted
inserted
replaced
10943:02654bf3c3f6 | 10944:4e2cdce4576c |
---|---|
1 " Tests specifically for the GUI features/options that need to be set up at | |
2 " startup to take effect at runtime. | |
3 | |
4 if !has('gui') || ($DISPLAY == "" && !has('gui_running')) | |
5 finish | |
6 endif | |
7 | |
8 source setup_gui.vim | |
9 | |
10 func Setup() | |
11 call GUISetUpCommon() | |
12 endfunc | |
13 | |
14 func TearDown() | |
15 call GUITearDownCommon() | |
16 endfunc | |
17 | |
18 " Make sure that the tests will be done with the GUI activated. | |
19 gui -f | |
20 | |
21 func 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 | |
35 endfunc |