diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2016-06-20 20:47:23 +0200 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2016-06-20 23:10:46 +0200 |
commit | 1a8d9e9d542129dca71e7baf8f38bd48008310cf (patch) | |
tree | c186deb62b0c3e69edfb26f312511f178d7a7265 /test/functional/terminal/window_spec.lua | |
parent | a05e7a6bcae57eefcc3dd40c756c37793eeb21a0 (diff) | |
download | rneovim-1a8d9e9d542129dca71e7baf8f38bd48008310cf.tar.gz rneovim-1a8d9e9d542129dca71e7baf8f38bd48008310cf.tar.bz2 rneovim-1a8d9e9d542129dca71e7baf8f38bd48008310cf.zip |
Add tests for new feature
Diffstat (limited to 'test/functional/terminal/window_spec.lua')
-rw-r--r-- | test/functional/terminal/window_spec.lua | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/test/functional/terminal/window_spec.lua b/test/functional/terminal/window_spec.lua index 7bc739c548..eec8b53f4d 100644 --- a/test/functional/terminal/window_spec.lua +++ b/test/functional/terminal/window_spec.lua @@ -2,7 +2,7 @@ local helpers = require('test.functional.helpers')(after_each) local thelpers = require('test.functional.terminal.helpers') local feed, clear = helpers.feed, helpers.clear local wait = helpers.wait - +local execute = helpers.execute describe('terminal window', function() local screen @@ -12,6 +12,23 @@ describe('terminal window', function() screen = thelpers.screen_setup() end) + it('resets its size when entering terminal buffer', function() + feed('<c-\\><c-n>') + execute('set hidden') + execute('edit foo') + execute('doautoall SessionLoadPost') + execute('silent bnext') + screen:expect([[ + tty ready | + {2: } | + | + | + | + ^ | + :silent bnext | + ]]) + end) + describe('with colorcolumn set', function() before_each(function() feed('<c-\\><c-n>') |