mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
win: enable tests in ex_terminal_spec
This commit is contained in:

committed by
Justin M. Keyes

parent
d55881d278
commit
e9b5616eaf
@@ -7,7 +7,6 @@ local retry = helpers.retry
|
|||||||
local iswin = helpers.iswin
|
local iswin = helpers.iswin
|
||||||
|
|
||||||
describe(':terminal', function()
|
describe(':terminal', function()
|
||||||
if helpers.pending_win32(pending) then return end
|
|
||||||
local screen
|
local screen
|
||||||
|
|
||||||
before_each(function()
|
before_each(function()
|
||||||
@@ -24,7 +23,11 @@ describe(':terminal', function()
|
|||||||
echomsg "msg3"
|
echomsg "msg3"
|
||||||
]])
|
]])
|
||||||
-- Invoke a command that emits frequent terminal activity.
|
-- Invoke a command that emits frequent terminal activity.
|
||||||
feed_command([[terminal while true; do echo X; done]])
|
if iswin() then
|
||||||
|
feed_command([[terminal for /L \\%I in (1,0,2) do echo \\%I]])
|
||||||
|
else
|
||||||
|
feed_command([[terminal while true; do echo X; done]])
|
||||||
|
end
|
||||||
helpers.feed([[<C-\><C-N>]])
|
helpers.feed([[<C-\><C-N>]])
|
||||||
wait()
|
wait()
|
||||||
screen:sleep(10) -- Let some terminal activity happen.
|
screen:sleep(10) -- Let some terminal activity happen.
|
||||||
@@ -38,7 +41,11 @@ describe(':terminal', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it("in normal-mode :split does not move cursor", function()
|
it("in normal-mode :split does not move cursor", function()
|
||||||
feed_command([[terminal while true; do echo foo; sleep .1; done]])
|
if iswin() then
|
||||||
|
feed_command([[terminal for /L \\%I in (1,0,2) do ( echo foo & ping -w 100 -n 1 127.0.0.1 > nul )]])
|
||||||
|
else
|
||||||
|
feed_command([[terminal while true; do echo foo; sleep .1; done]])
|
||||||
|
end
|
||||||
helpers.feed([[<C-\><C-N>M]]) -- move cursor away from last line
|
helpers.feed([[<C-\><C-N>M]]) -- move cursor away from last line
|
||||||
wait()
|
wait()
|
||||||
eq(3, eval("line('$')")) -- window height
|
eq(3, eval("line('$')")) -- window height
|
||||||
|
Reference in New Issue
Block a user