mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #10626 from janlazo/test/enable
Windows: enable more tests
This commit is contained in:
commit
46cb85691c
@ -158,14 +158,15 @@ describe(':terminal buffer', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('handles loss of focus gracefully', function()
|
it('handles loss of focus gracefully', function()
|
||||||
if helpers.pending_win32(pending) then return end
|
|
||||||
-- Change the statusline to avoid printing the file name, which varies.
|
-- Change the statusline to avoid printing the file name, which varies.
|
||||||
nvim('set_option', 'statusline', '==========')
|
nvim('set_option', 'statusline', '==========')
|
||||||
feed_command('set laststatus=0')
|
feed_command('set laststatus=0')
|
||||||
|
|
||||||
-- Save the buffer number of the terminal for later testing.
|
-- Save the buffer number of the terminal for later testing.
|
||||||
local tbuf = eval('bufnr("%")')
|
local tbuf = eval('bufnr("%")')
|
||||||
|
local exitcmd = helpers.iswin()
|
||||||
|
and "['cmd', '/c', 'exit']"
|
||||||
|
or "['sh', '-c', 'exit']"
|
||||||
source([[
|
source([[
|
||||||
function! SplitWindow(id, data, event)
|
function! SplitWindow(id, data, event)
|
||||||
new
|
new
|
||||||
@ -173,7 +174,7 @@ describe(':terminal buffer', function()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
startinsert
|
startinsert
|
||||||
call jobstart(['sh', '-c', 'exit'], {'on_exit': function("SplitWindow")})
|
call jobstart(]]..exitcmd..[[, {'on_exit': function("SplitWindow")})
|
||||||
call feedkeys("\<C-\>", 't') " vim will expect <C-n>, but be exited out of
|
call feedkeys("\<C-\>", 't') " vim will expect <C-n>, but be exited out of
|
||||||
" the terminal before it can be entered.
|
" the terminal before it can be entered.
|
||||||
]])
|
]])
|
||||||
|
@ -37,7 +37,6 @@ describe(':terminal', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('does not change size on WinEnter', function()
|
it('does not change size on WinEnter', function()
|
||||||
if helpers.pending_win32(pending) then return end
|
|
||||||
feed('<c-\\><c-n>')
|
feed('<c-\\><c-n>')
|
||||||
feed('k')
|
feed('k')
|
||||||
feed_command('2split')
|
feed_command('2split')
|
||||||
|
@ -12,8 +12,6 @@ local command = helpers.command
|
|||||||
local nvim_dir = helpers.nvim_dir
|
local nvim_dir = helpers.nvim_dir
|
||||||
|
|
||||||
describe("shell command :!", function()
|
describe("shell command :!", function()
|
||||||
if helpers.pending_win32(pending) then return end
|
|
||||||
|
|
||||||
local screen
|
local screen
|
||||||
before_each(function()
|
before_each(function()
|
||||||
clear()
|
clear()
|
||||||
@ -36,6 +34,7 @@ describe("shell command :!", function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it("displays output without LF/EOF. #4646 #4569 #3772", function()
|
it("displays output without LF/EOF. #4646 #4569 #3772", function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
-- NOTE: We use a child nvim (within a :term buffer)
|
-- NOTE: We use a child nvim (within a :term buffer)
|
||||||
-- to avoid triggering a UI flush.
|
-- to avoid triggering a UI flush.
|
||||||
child_session.feed_data(":!printf foo; sleep 200\n")
|
child_session.feed_data(":!printf foo; sleep 200\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user