Mercurial > vim
comparison src/testdir/test_vim9_builtin.vim @ 25240:a7f2a2079bce v8.2.3156
patch 8.2.3156: Vim9: term_getansicolors() test fails without +termguicolors
Commit: https://github.com/vim/vim/commit/ee41052ccb65f8109f285fc43eed3e232de68375
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Mon Jul 12 22:15:24 2021 +0200
patch 8.2.3156: Vim9: term_getansicolors() test fails without +termguicolors
Problem: Vim9: term_getansicolors() test fails without +termguicolors.
Solution: Add a check for the feature. (Dominique Pell?, closes https://github.com/vim/vim/issues/8555)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 12 Jul 2021 22:30:04 +0200 |
parents | 2c83f7b316d3 |
children | 532faf893d37 |
comparison
equal
deleted
inserted
replaced
25239:000aae469911 | 25240:a7f2a2079bce |
---|---|
2215 CheckDefAndScriptFailure2(['term_getaltscreen(true)'], 'E1013: Argument 1: type mismatch, expected string but got bool', 'E1138: Using a Bool as a Number') | 2215 CheckDefAndScriptFailure2(['term_getaltscreen(true)'], 'E1013: Argument 1: type mismatch, expected string but got bool', 'E1138: Using a Bool as a Number') |
2216 enddef | 2216 enddef |
2217 | 2217 |
2218 def Test_term_getansicolors() | 2218 def Test_term_getansicolors() |
2219 CheckRunVimInTerminal | 2219 CheckRunVimInTerminal |
2220 CheckFeature termguicolors | |
2220 CheckDefAndScriptFailure2(['term_getansicolors(["a"])'], 'E1013: Argument 1: type mismatch, expected string but got list<string>', 'E745: Using a List as a Number') | 2221 CheckDefAndScriptFailure2(['term_getansicolors(["a"])'], 'E1013: Argument 1: type mismatch, expected string but got list<string>', 'E745: Using a List as a Number') |
2221 enddef | 2222 enddef |
2222 | 2223 |
2223 def Test_term_getcursor() | 2224 def Test_term_getcursor() |
2224 CheckRunVimInTerminal | 2225 CheckRunVimInTerminal |