mirror of
https://github.com/neovim/neovim.git
synced 2025-10-22 17:11:49 +00:00
Revert "functests: Replace wait() with nvim_async"
This reverts commit e129607988
.
Tests stopped working in CI.
This commit is contained in:
@@ -2,13 +2,13 @@ local helpers = require('test.functional.helpers')(after_each)
|
|||||||
local Screen = require('test.functional.ui.screen')
|
local Screen = require('test.functional.ui.screen')
|
||||||
|
|
||||||
local eq = helpers.eq
|
local eq = helpers.eq
|
||||||
|
local wait = helpers.wait
|
||||||
local feed = helpers.feed
|
local feed = helpers.feed
|
||||||
local meths = helpers.meths
|
local meths = helpers.meths
|
||||||
local clear = helpers.clear
|
local clear = helpers.clear
|
||||||
local source = helpers.source
|
local source = helpers.source
|
||||||
local command = helpers.command
|
local command = helpers.command
|
||||||
local exc_exec = helpers.exc_exec
|
local exc_exec = helpers.exc_exec
|
||||||
local nvim_async = helpers.nvim_async
|
|
||||||
|
|
||||||
local screen
|
local screen
|
||||||
|
|
||||||
@@ -229,16 +229,16 @@ describe('input()', function()
|
|||||||
exc_exec('call input("prompt> ", "default", "file", "extra")'))
|
exc_exec('call input("prompt> ", "default", "file", "extra")'))
|
||||||
end)
|
end)
|
||||||
it('supports highlighting', function()
|
it('supports highlighting', function()
|
||||||
nvim_async('command', 'call input({"highlight": "RainBowParens"})')
|
feed([[:call input({"highlight": "RainBowParens"})<CR>]])
|
||||||
|
wait()
|
||||||
feed('(())')
|
feed('(())')
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
|
{EOB:~ }|
|
||||||
|
{EOB:~ }|
|
||||||
|
{EOB:~ }|
|
||||||
|
|
|
|
||||||
{EOB:~ }|
|
|
||||||
{EOB:~ }|
|
|
||||||
{EOB:~ }|
|
|
||||||
{RBP1:(}{RBP2:()}{RBP1:)}^ |
|
{RBP1:(}{RBP2:()}{RBP1:)}^ |
|
||||||
]])
|
]])
|
||||||
feed('<CR>')
|
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
describe('inputdialog()', function()
|
describe('inputdialog()', function()
|
||||||
@@ -408,15 +408,15 @@ describe('inputdialog()', function()
|
|||||||
exc_exec('call inputdialog("prompt> ", "default", "file", "extra")'))
|
exc_exec('call inputdialog("prompt> ", "default", "file", "extra")'))
|
||||||
end)
|
end)
|
||||||
it('supports highlighting', function()
|
it('supports highlighting', function()
|
||||||
nvim_async('command', 'call inputdialog({"highlight": "RainBowParens"})')
|
feed([[:call inputdialog({"highlight": "RainBowParens"})<CR>]])
|
||||||
|
wait()
|
||||||
feed('(())')
|
feed('(())')
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
|
{EOB:~ }|
|
||||||
|
{EOB:~ }|
|
||||||
|
{EOB:~ }|
|
||||||
|
|
|
|
||||||
{EOB:~ }|
|
|
||||||
{EOB:~ }|
|
|
||||||
{EOB:~ }|
|
|
||||||
{RBP1:(}{RBP2:()}{RBP1:)}^ |
|
{RBP1:(}{RBP2:()}{RBP1:)}^ |
|
||||||
]])
|
]])
|
||||||
feed('<CR>')
|
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
Reference in New Issue
Block a user