aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/cursor_spec.lua
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-11-12 14:22:35 -0500
committerJames McCoy <jamessan@jamessan.com>2017-11-12 16:45:39 -0500
commitb63cde97f40b962f80ab929036d0eb8c1228b33f (patch)
tree9891e565f3784f8e9bf14080ac9b735fd46c399c /test/functional/terminal/cursor_spec.lua
parent0407ddb36464c46086b608baebf7eed8a9ab60d5 (diff)
downloadrneovim-b63cde97f40b962f80ab929036d0eb8c1228b33f.tar.gz
rneovim-b63cde97f40b962f80ab929036d0eb8c1228b33f.tar.bz2
rneovim-b63cde97f40b962f80ab929036d0eb8c1228b33f.zip
tests: terminal: Assert for SIGWINCH handling before continuing
Fixes test failures like test/functional/terminal/cursor_spec.lua @ 62: terminal cursor with number column is positioned correctly when focused ./test/functional/ui/screen.lua:302: Row 2 did not match. Expected: |{7: 1 }tty ready | |*{7: 2 }{1: } | |{7: 3 } | |{7: 4 } | |{7: 5 } | |{7: 6 } | |{3:-- TERMINAL --} | Actual: |{7: 1 }tty ready | |*{7: 2 }rows: 6, cols: 46 | |{7: 3 }{1: } | |{7: 4 } | |{7: 5 } | |{7: 6 } | |{3:-- TERMINAL --} |
Diffstat (limited to 'test/functional/terminal/cursor_spec.lua')
-rw-r--r--test/functional/terminal/cursor_spec.lua17
1 files changed, 13 insertions, 4 deletions
diff --git a/test/functional/terminal/cursor_spec.lua b/test/functional/terminal/cursor_spec.lua
index d49f1bfc23..d942723d02 100644
--- a/test/functional/terminal/cursor_spec.lua
+++ b/test/functional/terminal/cursor_spec.lua
@@ -50,8 +50,8 @@ describe('terminal cursor', function()
it('is positioned correctly when unfocused', function()
screen:expect([[
{7: 1 }tty ready |
- {7: 2 }{2:^ } |
- {7: 3 } |
+ {7: 2 }^rows: 6, cols: 46 |
+ {7: 3 }{2: } |
{7: 4 } |
{7: 5 } |
{7: 6 } |
@@ -60,12 +60,21 @@ describe('terminal cursor', function()
end)
it('is positioned correctly when focused', function()
+ screen:expect([[
+ {7: 1 }tty ready |
+ {7: 2 }^rows: 6, cols: 46 |
+ {7: 3 }{2: } |
+ {7: 4 } |
+ {7: 5 } |
+ {7: 6 } |
+ :set number |
+ ]])
feed('i')
helpers.wait()
screen:expect([[
{7: 1 }tty ready |
- {7: 2 }{1: } |
- {7: 3 } |
+ {7: 2 }rows: 6, cols: 46 |
+ {7: 3 }{1: } |
{7: 4 } |
{7: 5 } |
{7: 6 } |