From c8f310825cf92da2feb25a7298998fcd1da5a769 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sun, 3 Mar 2019 10:26:11 +0100 Subject: api: add nvim_win_close() to close window by id --- test/functional/ui/float_spec.lua | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'test/functional/ui') diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua index 0d0ae60ce9..784c2d98f5 100644 --- a/test/functional/ui/float_spec.lua +++ b/test/functional/ui/float_spec.lua @@ -118,6 +118,37 @@ describe('floating windows', function() | ]]) end + + meths.win_close(win, false) + if multigrid then + screen:expect([[ + ## grid 1 + [2:----------------------------------------]| + [2:----------------------------------------]| + [2:----------------------------------------]| + [2:----------------------------------------]| + [2:----------------------------------------]| + [2:----------------------------------------]| + | + ## grid 2 + ^ | + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + ]]) + else + screen:expect([[ + ^ | + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + | + ]]) + end end) it('API has proper error messages', function() -- cgit