test: tty-test.c: restore win32 SIGWINCH handler

This commit is contained in:
Justin M. Keyes
2017-08-07 00:26:43 +02:00
parent 6a90f53862
commit e0763e94ad
3 changed files with 38 additions and 38 deletions

View File

@@ -141,7 +141,6 @@ describe('terminal scrollback', function()
describe('and the height is decreased by 1', function()
local function will_hide_top_line()
screen:try_resize(screen._width, screen._height - 1)
retry(nil, 100000, function()
screen:expect([[
line2 |
line3 |
@@ -150,7 +149,6 @@ describe('terminal scrollback', function()
{1: } |
{3:-- TERMINAL --} |
]])
end)
end
it('will hide top line', will_hide_top_line)
@@ -162,7 +160,6 @@ describe('terminal scrollback', function()
end)
it('will hide the top 3 lines', function()
retry(nil, 100000, function()
screen:expect([[
rows: 5, cols: 30 |
rows: 3, cols: 30 |
@@ -177,13 +174,15 @@ describe('terminal scrollback', function()
rows: 3, cols: 30 |
|
]])
end)
end)
end)
end)
end)
describe('with empty lines after the cursor', function()
-- XXX: Can't test this reliably on Windows unless the cursor is _moved_
-- by the resize. http://docs.libuv.org/en/v1.x/signal.html
-- See also: https://github.com/rprichard/winpty/issues/110
if helpers.pending_win32(pending) then return end
describe('and the height is decreased by 2', function()
@@ -250,7 +249,6 @@ describe('terminal scrollback', function()
{3:-- TERMINAL --} |
]])
screen:try_resize(screen._width, screen._height - 3)
retry(nil, 100000, function()
screen:expect([[
line4 |
rows: 3, cols: 30 |
@@ -258,10 +256,13 @@ describe('terminal scrollback', function()
{3:-- TERMINAL --} |
]])
eq(7, curbuf('line_count'))
end)
end)
describe('and the height is increased by 1', function()
-- XXX: Can't test this reliably on Windows unless the cursor is _moved_
-- by the resize. http://docs.libuv.org/en/v1.x/signal.html
-- See also: https://github.com/rprichard/winpty/issues/110
if helpers.pending_win32(pending) then return end
local function pop_then_push()
screen:try_resize(screen._width, screen._height + 1)
screen:expect([[
@@ -310,7 +311,6 @@ describe('terminal scrollback', function()
it('will pop 3 lines and then push one back', pop3_then_push1)
describe('and then by 4', function()
if helpers.pending_win32(pending) then return end
before_each(function()
pop3_then_push1()
feed('Gi')