diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-01-18 20:28:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-18 20:28:35 +0100 |
commit | 2ee60e5b28fbe27e128305858937ca5d6aa0031e (patch) | |
tree | 8205e5ca8b5753120e7cfd887f644b45a79f2800 /test/functional/ui/screen_basic_spec.lua | |
parent | d3b4764dc137e0f6f2c219244e00fba92a64a384 (diff) | |
download | rneovim-2ee60e5b28fbe27e128305858937ca5d6aa0031e.tar.gz rneovim-2ee60e5b28fbe27e128305858937ca5d6aa0031e.tar.bz2 rneovim-2ee60e5b28fbe27e128305858937ca5d6aa0031e.zip |
test: nvim_ui_attach() with huge dimensions. (#5974)
Also:
- Attempt to constrain wall-of-text in screen.lua.
- Windows: Enable screen_basic_spec.lua
Closes #2180
Diffstat (limited to 'test/functional/ui/screen_basic_spec.lua')
-rw-r--r-- | test/functional/ui/screen_basic_spec.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/functional/ui/screen_basic_spec.lua b/test/functional/ui/screen_basic_spec.lua index d03f98c26f..12c6818f7d 100644 --- a/test/functional/ui/screen_basic_spec.lua +++ b/test/functional/ui/screen_basic_spec.lua @@ -4,8 +4,7 @@ local spawn, set_session, clear = helpers.spawn, helpers.set_session, helpers.cl local feed, execute = helpers.feed, helpers.execute local insert = helpers.insert local eq = helpers.eq - -if helpers.pending_win32(pending) then return end +local eval = helpers.eval describe('Initial screen', function() local screen @@ -690,4 +689,12 @@ describe('Screen', function() end) end) end) + + it('nvim_ui_attach() handles very large width/height #2180', function() + screen:detach() + screen = Screen.new(999, 999) + screen:attach() + eq(999, eval('&lines')) + eq(999, eval('&columns')) + end) end) |