aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/float_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-03-03 17:30:58 +0100
committerGitHub <noreply@github.com>2019-03-03 17:30:58 +0100
commitbcbb96e31b88eff7a1629c7c8a5f1d4eacb32829 (patch)
treec25dbfefa127a5f8fc30a4900856a788173819e5 /test/functional/ui/float_spec.lua
parent8e54847fdf3c4e3c9ed1b4ae8a026b452419c6bf (diff)
parentc8f310825cf92da2feb25a7298998fcd1da5a769 (diff)
downloadrneovim-bcbb96e31b88eff7a1629c7c8a5f1d4eacb32829.tar.gz
rneovim-bcbb96e31b88eff7a1629c7c8a5f1d4eacb32829.tar.bz2
rneovim-bcbb96e31b88eff7a1629c7c8a5f1d4eacb32829.zip
Merge pull request #9667 from bfredl/winclose
api: add nvim_win_close() to close window by id
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r--test/functional/ui/float_spec.lua31
1 files changed, 31 insertions, 0 deletions
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()