diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-01-06 17:52:14 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-06 17:52:14 +0100 |
commit | 4fedad6c5b819fa91d4073c86d2d687e6c4d5ea4 (patch) | |
tree | db49b32ee4af66bfb29230af3853ac945210ebdd /test/functional/terminal/ex_terminal_spec.lua | |
parent | c82e7c75fe4c127a2886e22891794a9f12bff530 (diff) | |
parent | ab1e11e44fd17ffbd4c1fdb26c2b03de3c6831ae (diff) | |
download | rneovim-4fedad6c5b819fa91d4073c86d2d687e6c4d5ea4.tar.gz rneovim-4fedad6c5b819fa91d4073c86d2d687e6c4d5ea4.tar.bz2 rneovim-4fedad6c5b819fa91d4073c86d2d687e6c4d5ea4.zip |
Merge #7753 'win: enable more functional tests'
Diffstat (limited to 'test/functional/terminal/ex_terminal_spec.lua')
-rw-r--r-- | test/functional/terminal/ex_terminal_spec.lua | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/test/functional/terminal/ex_terminal_spec.lua b/test/functional/terminal/ex_terminal_spec.lua index e015df10db..ee92ba6865 100644 --- a/test/functional/terminal/ex_terminal_spec.lua +++ b/test/functional/terminal/ex_terminal_spec.lua @@ -7,7 +7,6 @@ local retry = helpers.retry local iswin = helpers.iswin describe(':terminal', function() - if helpers.pending_win32(pending) then return end local screen before_each(function() @@ -24,7 +23,11 @@ describe(':terminal', function() echomsg "msg3" ]]) -- 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>]]) wait() screen:sleep(10) -- Let some terminal activity happen. @@ -38,7 +41,11 @@ describe(':terminal', function() end) 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 wait() eq(3, eval("line('$')")) -- window height |