aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-07-27 18:49:13 +0300
committerZyX <kp-pav@yandex.ru>2017-07-27 18:49:13 +0300
commit1011462b40502e6039494e70a870f0360f152b1b (patch)
treee85417600591a5a6929d72451721ed0208e3b944
parentc5857e3f3807d305598d7639949793d44b380e23 (diff)
downloadrneovim-1011462b40502e6039494e70a870f0360f152b1b.tar.gz
rneovim-1011462b40502e6039494e70a870f0360f152b1b.tar.bz2
rneovim-1011462b40502e6039494e70a870f0360f152b1b.zip
Revert "functests: Replace wait() with nvim_async"
This reverts commit e129607988b88719935bc4af517e7ee2689f5871. Tests stopped working in CI.
-rw-r--r--test/functional/eval/input_spec.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/functional/eval/input_spec.lua b/test/functional/eval/input_spec.lua
index cfb91983c1..0571043efe 100644
--- a/test/functional/eval/input_spec.lua
+++ b/test/functional/eval/input_spec.lua
@@ -2,13 +2,13 @@ local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen')
local eq = helpers.eq
+local wait = helpers.wait
local feed = helpers.feed
local meths = helpers.meths
local clear = helpers.clear
local source = helpers.source
local command = helpers.command
local exc_exec = helpers.exc_exec
-local nvim_async = helpers.nvim_async
local screen
@@ -229,16 +229,16 @@ describe('input()', function()
exc_exec('call input("prompt> ", "default", "file", "extra")'))
end)
it('supports highlighting', function()
- nvim_async('command', 'call input({"highlight": "RainBowParens"})')
+ feed([[:call input({"highlight": "RainBowParens"})<CR>]])
+ wait()
feed('(())')
screen:expect([[
- |
{EOB:~ }|
{EOB:~ }|
{EOB:~ }|
+ |
{RBP1:(}{RBP2:()}{RBP1:)}^ |
]])
- feed('<CR>')
end)
end)
describe('inputdialog()', function()
@@ -408,15 +408,15 @@ describe('inputdialog()', function()
exc_exec('call inputdialog("prompt> ", "default", "file", "extra")'))
end)
it('supports highlighting', function()
- nvim_async('command', 'call inputdialog({"highlight": "RainBowParens"})')
+ feed([[:call inputdialog({"highlight": "RainBowParens"})<CR>]])
+ wait()
feed('(())')
screen:expect([[
- |
{EOB:~ }|
{EOB:~ }|
{EOB:~ }|
+ |
{RBP1:(}{RBP2:()}{RBP1:)}^ |
]])
- feed('<CR>')
end)
end)