aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/float_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-02-08 11:43:27 +0100
committerGitHub <noreply@github.com>2024-02-08 11:43:27 +0100
commit3f2d543ee8d01ce0d4515ed35b96e274b1668a54 (patch)
treed138042dfb217ce2a3153df2b447f587c3e49a56 /test/functional/ui/float_spec.lua
parent02cc84b4d9d8efdd27c3f60fef11e02297051fab (diff)
parentca2635adf9c9c45ea745b9f750dc4da7063bdd14 (diff)
downloadrneovim-3f2d543ee8d01ce0d4515ed35b96e274b1668a54.tar.gz
rneovim-3f2d543ee8d01ce0d4515ed35b96e274b1668a54.tar.bz2
rneovim-3f2d543ee8d01ce0d4515ed35b96e274b1668a54.zip
Merge pull request #27284 from bfredl/unkeydict
refactor(api): use keydict and arena for more api return values
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r--test/functional/ui/float_spec.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua
index 397c1f6132..60ba9f3958 100644
--- a/test/functional/ui/float_spec.lua
+++ b/test/functional/ui/float_spec.lua
@@ -1101,6 +1101,15 @@ describe('float window', function()
local win = api.nvim_open_win(buf, false, {relative='editor', width=20, height=2, row=3, col=5, zindex=60})
local expected = {anchor='NW', col=5, external=false, focusable=true, height=2, relative='editor', row=3, width=20, zindex=60, hide=false}
eq(expected, api.nvim_win_get_config(win))
+ eq(true, exec_lua([[
+ local expected, win = ...
+ local actual = vim.api.nvim_win_get_config(win)
+ for k,v in pairs(expected) do
+ if v ~= actual[k] then
+ error(k)
+ end
+ end
+ return true]], expected, win))
eq({external=false, focusable=true, hide=false, relative='',split="left",width=40,height=6}, api.nvim_win_get_config(0))