diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-02-24 19:53:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-02-24 19:53:53 +0100 |
commit | 6bb2cdfe604e51eec216cbe23bb6e8fb47810347 (patch) | |
tree | 6d8ba5abf32abdd6df606bccd90d76aa359bd718 /src/testdir/test_syntax.vim | |
parent | bb008dd3239c5fe3ac04501e38e4c950fa9426c8 (diff) | |
download | vim-git-6bb2cdfe604e51eec216cbe23bb6e8fb47810347.tar.gz |
patch 8.0.1539: no test for the popup menu positioningv8.0.1539
Problem: No test for the popup menu positioning.
Solution: Add a screendump test for the popup menu.
Diffstat (limited to 'src/testdir/test_syntax.vim')
-rw-r--r-- | src/testdir/test_syntax.vim | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/testdir/test_syntax.vim b/src/testdir/test_syntax.vim index ca87ccf66..e49c8ed89 100644 --- a/src/testdir/test_syntax.vim +++ b/src/testdir/test_syntax.vim @@ -5,9 +5,7 @@ if !has("syntax") endif source view_util.vim -if has('terminal') - source screendump.vim -endif +source screendump.vim func GetSyntaxItem(pat) let c = '' @@ -528,10 +526,7 @@ endfunc " Check highlighting for a small piece of C code with a screen dump. func Test_syntax_c() - " Need to be able to run terminal Vim with 256 colors. - " On MS-Windows the console only has 16 colors and the GUI can't run in a - " terminal. - if !has('terminal') || has('win32') + if !CanRunVimInTerminal() return endif call writefile([ @@ -561,7 +556,7 @@ func Test_syntax_c() let $COLORFGBG = '15;0' let buf = RunVimInTerminal('Xtest.c', {}) - call VerifyScreenDump(buf, 'Test_syntax_c_01') + call VerifyScreenDump(buf, 'Test_syntax_c_01', {}) call StopVimInTerminal(buf) let $COLORFGBG = '' |