diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-06-03 00:08:32 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-06-03 00:08:32 +0200 |
commit | c0134660aba0d635845c217a4aaf3837d085665f (patch) | |
tree | b1c425366327a33cfb5ca2f5ac5f510960844ba5 /test/functional/ui/wildmode_spec.lua | |
parent | 40218d118030d0104ede11ad2956ef150e9a7573 (diff) | |
download | rneovim-c0134660aba0d635845c217a4aaf3837d085665f.tar.gz rneovim-c0134660aba0d635845c217a4aaf3837d085665f.tar.bz2 rneovim-c0134660aba0d635845c217a4aaf3837d085665f.zip |
test: avoid some boilerplate
Diffstat (limited to 'test/functional/ui/wildmode_spec.lua')
-rw-r--r-- | test/functional/ui/wildmode_spec.lua | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/test/functional/ui/wildmode_spec.lua b/test/functional/ui/wildmode_spec.lua index f960b793c9..75b5ea9476 100644 --- a/test/functional/ui/wildmode_spec.lua +++ b/test/functional/ui/wildmode_spec.lua @@ -167,22 +167,13 @@ describe("'wildmenu'", function() -- system-dependent. expect_stay_unchanged{any='! # & < = > @ > |\n:!^'} end) -end) -describe("'wildmenu'", function() - local screen - before_each(function() - clear() - -- screen needs to be more than 5 rows - -- otherwise the tabline is covered and will be redrawn + it('wildmode=list,full and display+=msgsep interaction #10092', function() + -- Need more than 5 rows, else tabline is covered and will be redrawn. + screen:detach() screen = Screen.new(25, 7) screen:attach() - end) - after_each(function() - screen:detach() - end) - it('wildmode=list,full and display+=msgsep interact correctly #10092', function() command('set display+=msgsep') command('set wildmenu wildmode=list,full') command('set showtabline=2') @@ -218,7 +209,12 @@ describe("'wildmenu'", function() ]]) end) - it('wildmode=list,full and display-=msgsep interact correctly', function() + it('wildmode=list,full and display-=msgsep interaction', function() + -- Need more than 5 rows, else tabline is covered and will be redrawn. + screen:detach() + screen = Screen.new(25, 7) + screen:attach() + command('set display-=msgsep') command('set wildmenu wildmode=list,full') feed(':set wildm<tab>') |