diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-08-07 00:26:43 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-08-16 09:13:44 +0200 |
commit | e0763e94ade67c99f9d9f46cd51299b174969927 (patch) | |
tree | 0ae7d12be715d564a4664683b453d67ede1870af /test/functional/terminal/scrollback_spec.lua | |
parent | 6a90f53862d9f75f7aeea350944c466aa85f11a2 (diff) | |
download | rneovim-e0763e94ade67c99f9d9f46cd51299b174969927.tar.gz rneovim-e0763e94ade67c99f9d9f46cd51299b174969927.tar.bz2 rneovim-e0763e94ade67c99f9d9f46cd51299b174969927.zip |
test: tty-test.c: restore win32 SIGWINCH handler
Diffstat (limited to 'test/functional/terminal/scrollback_spec.lua')
-rw-r--r-- | test/functional/terminal/scrollback_spec.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/functional/terminal/scrollback_spec.lua b/test/functional/terminal/scrollback_spec.lua index b6b0228513..f804862996 100644 --- a/test/functional/terminal/scrollback_spec.lua +++ b/test/functional/terminal/scrollback_spec.lua @@ -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') |