mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
tests: introduce screen:expect{...} form
This commit is contained in:
@@ -188,15 +188,15 @@ describe('ui/cursor', function()
|
||||
-- Event is published ONLY if the cursor style changed.
|
||||
screen._mode_info = nil
|
||||
command("echo 'test'")
|
||||
screen:expect([[
|
||||
screen:expect{grid=[[
|
||||
^ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
test |
|
||||
]], nil, nil, function()
|
||||
]], condition=function()
|
||||
eq(nil, screen._mode_info)
|
||||
end)
|
||||
end}
|
||||
|
||||
-- Change the cursor style.
|
||||
helpers.command('hi Cursor guibg=DarkGray')
|
||||
|
Reference in New Issue
Block a user