comparison src/testdir/test_terminal.vim @ 18137:5a5e9eed6029 v8.1.2063

patch 8.1.2063: some tests fail when +balloon_eval_term is missing Commit: https://github.com/vim/vim/commit/1e82a784ace6d2c4dce594dd6156bcb0028bba9e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 21 22:57:06 2019 +0200 patch 8.1.2063: some tests fail when +balloon_eval_term is missing Problem: Some tests fail when +balloon_eval_term is missing but _balloon_eval is present. (Dominique Pelle) Solution: Check the right feature in the test. (closes #4962)
author Bram Moolenaar <Bram@vim.org>
date Sat, 21 Sep 2019 23:00:04 +0200
parents 873068e19e1f
children 2416e1a887ca
comparison
equal deleted inserted replaced
18136:ab2c97df5d08 18137:5a5e9eed6029
1464 \ '#6d690d', '#0a6e6f', 1464 \ '#6d690d', '#0a6e6f',
1465 \ '#610d0a', '#6e6479', 1465 \ '#610d0a', '#6e6479',
1466 \] 1466 \]
1467 1467
1468 func Test_terminal_ansicolors_global() 1468 func Test_terminal_ansicolors_global()
1469 CheckFeature termguicolors
1469 if !exists('*term_getansicolors') 1470 if !exists('*term_getansicolors')
1470 throw 'Skipped: term_getansicolors() not supported' 1471 throw 'Skipped: term_getansicolors() not supported'
1471 endif 1472 endif
1472 let g:terminal_ansi_colors = reverse(copy(s:test_colors)) 1473 let g:terminal_ansi_colors = reverse(copy(s:test_colors))
1473 let buf = Run_shell_in_terminal({}) 1474 let buf = Run_shell_in_terminal({})
1478 exe buf . 'bwipe' 1479 exe buf . 'bwipe'
1479 unlet g:terminal_ansi_colors 1480 unlet g:terminal_ansi_colors
1480 endfunc 1481 endfunc
1481 1482
1482 func Test_terminal_ansicolors_func() 1483 func Test_terminal_ansicolors_func()
1484 CheckFeature termguicolors
1483 if !exists('*term_getansicolors') 1485 if !exists('*term_getansicolors')
1484 throw 'Skipped: term_getansicolors() not supported' 1486 throw 'Skipped: term_getansicolors() not supported'
1485 endif 1487 endif
1486 let g:terminal_ansi_colors = reverse(copy(s:test_colors)) 1488 let g:terminal_ansi_colors = reverse(copy(s:test_colors))
1487 let buf = Run_shell_in_terminal({'ansi_colors': s:test_colors}) 1489 let buf = Run_shell_in_terminal({'ansi_colors': s:test_colors})