mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test: replace wait() with pre-assertion in assert_term_colors
This commit is contained in:
parent
1bf83ea8e1
commit
075dc42fb2
@ -17,7 +17,6 @@ local nvim_prog = helpers.nvim_prog
|
|||||||
local nvim_set = helpers.nvim_set
|
local nvim_set = helpers.nvim_set
|
||||||
local ok = helpers.ok
|
local ok = helpers.ok
|
||||||
local read_file = helpers.read_file
|
local read_file = helpers.read_file
|
||||||
local wait = helpers.wait
|
|
||||||
|
|
||||||
if helpers.pending_win32(pending) then return end
|
if helpers.pending_win32(pending) then return end
|
||||||
|
|
||||||
@ -473,14 +472,24 @@ describe("tui 't_Co' (terminal colors)", function()
|
|||||||
nvim_prog,
|
nvim_prog,
|
||||||
nvim_set))
|
nvim_set))
|
||||||
|
|
||||||
feed_data(":echo &t_Co\n")
|
|
||||||
wait()
|
|
||||||
local tline
|
local tline
|
||||||
if maxcolors == 8 or maxcolors == 16 then
|
if maxcolors == 8 or maxcolors == 16 then
|
||||||
tline = "~ "
|
tline = "~ "
|
||||||
else
|
else
|
||||||
tline = "{4:~ }"
|
tline = "{4:~ }"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
screen:expect(string.format([[
|
||||||
|
{1: } |
|
||||||
|
%s|
|
||||||
|
%s|
|
||||||
|
%s|
|
||||||
|
%s|
|
||||||
|
|
|
||||||
|
{3:-- TERMINAL --} |
|
||||||
|
]], tline, tline, tline, tline))
|
||||||
|
|
||||||
|
feed_data(":echo &t_Co\n")
|
||||||
screen:expect(string.format([[
|
screen:expect(string.format([[
|
||||||
{1: } |
|
{1: } |
|
||||||
%s|
|
%s|
|
||||||
|
Loading…
Reference in New Issue
Block a user