aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/tui_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-08-20 18:51:25 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2018-08-27 15:15:49 +0200
commit3d88287e3016aacae64e2ddcd11a37e024557e45 (patch)
tree241711e8f052f02b0e465a42f6d47af302c8743b /test/functional/terminal/tui_spec.lua
parent03978a0f296aa8638a578698ea0a6cceedb34527 (diff)
downloadrneovim-3d88287e3016aacae64e2ddcd11a37e024557e45.tar.gz
rneovim-3d88287e3016aacae64e2ddcd11a37e024557e45.tar.bz2
rneovim-3d88287e3016aacae64e2ddcd11a37e024557e45.zip
tests: introduce screen:expect{...} form
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r--test/functional/terminal/tui_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua
index c0404ff463..351038e521 100644
--- a/test/functional/terminal/tui_spec.lua
+++ b/test/functional/terminal/tui_spec.lua
@@ -400,7 +400,7 @@ describe('tui FocusGained/FocusLost', function()
-- Exit cmdline-mode. Redraws from timers/events are blocked during
-- cmdline-mode, so the buffer won't be updated until we exit cmdline-mode.
feed_data('\n')
- screen:expect('lost'..(' '):rep(46)..'\ngained', nil, nil, nil, true)
+ screen:expect{any='lost'..(' '):rep(46)..'\ngained'}
end)
end)
@@ -740,7 +740,7 @@ describe("tui 'term' option", function()
screen.timeout = 250 -- We want screen:expect() to fail quickly.
retry(nil, 2 * full_timeout, function() -- Wait for TUI thread to set 'term'.
feed_data(":echo 'term='.(&term)\n")
- screen:expect('term='..term_expected, nil, nil, nil, true)
+ screen:expect{any='term='..term_expected}
end)
end