diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-08-20 18:51:25 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2018-08-27 15:15:49 +0200 |
commit | 3d88287e3016aacae64e2ddcd11a37e024557e45 (patch) | |
tree | 241711e8f052f02b0e465a42f6d47af302c8743b /test/functional/ui/cursor_spec.lua | |
parent | 03978a0f296aa8638a578698ea0a6cceedb34527 (diff) | |
download | rneovim-3d88287e3016aacae64e2ddcd11a37e024557e45.tar.gz rneovim-3d88287e3016aacae64e2ddcd11a37e024557e45.tar.bz2 rneovim-3d88287e3016aacae64e2ddcd11a37e024557e45.zip |
tests: introduce screen:expect{...} form
Diffstat (limited to 'test/functional/ui/cursor_spec.lua')
-rw-r--r-- | test/functional/ui/cursor_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/ui/cursor_spec.lua b/test/functional/ui/cursor_spec.lua index d1cddbe06a..3e0370db14 100644 --- a/test/functional/ui/cursor_spec.lua +++ b/test/functional/ui/cursor_spec.lua @@ -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') |