diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-03-03 10:26:11 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-03-03 13:09:43 +0100 |
commit | c8f310825cf92da2feb25a7298998fcd1da5a769 (patch) | |
tree | ab7ef5b75a2206f038d428798a788b5f7d6cc848 /test/functional/ui/float_spec.lua | |
parent | 7a6da502b9d8deecfc89d1497a8e8da15e65f31e (diff) | |
download | rneovim-c8f310825cf92da2feb25a7298998fcd1da5a769.tar.gz rneovim-c8f310825cf92da2feb25a7298998fcd1da5a769.tar.bz2 rneovim-c8f310825cf92da2feb25a7298998fcd1da5a769.zip |
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.lua | 31 |
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() |