diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-11-26 23:47:18 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-11-26 23:47:18 +0100 |
commit | 17471e84a72b5137a6010a98c4adb780237750db (patch) | |
tree | 315022c44942fd494b62c2053da381f1cc6e3acb /src/testdir/gen_opt_test.vim | |
parent | c8c75796a60e89210cc470f1b3864546fd4f319a (diff) |
patch 8.0.1349: options test fails when using Motif or GTK GUIv8.0.1349
Problem: Options test fails when using Motif or GTK GUI.
Solution: Use "fixed" instead of "fixedsys" for Unix. Don't try "xxx" for
guifonteset. Don't set 'termencoding' to anything but "utf-8" for
GTK. Give an error if 'termencoding' can't be converted.
Diffstat (limited to 'src/testdir/gen_opt_test.vim')
-rw-r--r-- | src/testdir/gen_opt_test.vim | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/testdir/gen_opt_test.vim b/src/testdir/gen_opt_test.vim index 32283c99bf..4edf44aafd 100644 --- a/src/testdir/gen_opt_test.vim +++ b/src/testdir/gen_opt_test.vim @@ -19,6 +19,9 @@ let script = [ /#define p_term let end = line('.') +" font name that works everywhere (hopefully) +let fontname = has('win32') ? 'fixedsys' : 'fixed' + " Two lists with values: values that work and values that fail. " When not listed, "othernum" or "otherstring" is used. let test_values = { @@ -93,8 +96,9 @@ let test_values = { \ 'foldmarker': [['((,))'], ['', 'xxx']], \ 'formatoptions': [['', 'vt', 'v,t'], ['xxx']], \ 'guicursor': [['', 'n:block-Cursor'], ['xxx']], - \ 'guifont': [['', 'fixedsys'], []], - \ 'guifontwide': [['', 'fixedsys'], []], + \ 'guifont': [['', fontname], []], + \ 'guifontwide': [['', fontname], []], + \ 'guifontset': [['', fontname], []], \ 'helplang': [['', 'de', 'de,it'], ['xxx']], \ 'highlight': [['', 'e:Error'], ['xxx']], \ 'imactivatekey': [['', 'S-space'], ['xxx']], @@ -126,6 +130,7 @@ let test_values = { \ 'tagcase': [['smart', 'match'], ['', 'xxx', 'smart,match']], \ 'term': [[], []], \ 'termsize': [['', '24x80', '0x80', '32x0', '0x0'], ['xxx', '80', '8ax9', '24x80b']], + \ 'termencoding': [has('gui_gtk') ? [] : ['', 'utf-8'], ['xxx']], \ 'toolbar': [['', 'icons', 'text'], ['xxx']], \ 'toolbariconsize': [['', 'tiny', 'huge'], ['xxx']], \ 'ttymouse': [['', 'xterm'], ['xxx']], @@ -189,8 +194,11 @@ while 1 call add(script, "endif") endif - call add(script, 'set ' . name . '&') - call add(script, 'set ' . shortname . '&') + " cannot change 'termencoding' in GTK + if name != 'termencoding' || !has('gui_gtk') + call add(script, 'set ' . name . '&') + call add(script, 'set ' . shortname . '&') + endif if name == 'verbosefile' call add(script, 'call delete("xxx")') endif |