aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/float_spec.lua
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2019-03-16 13:57:50 +0100
committerMarco Hinz <mh.codebro@gmail.com>2019-03-16 15:02:56 +0100
commit86992a7bb1fbf7f4eb2632a473ae3dbe5221d50f (patch)
tree6239b970ff41ee557cb339247ac9a12cc45d5914 /test/functional/ui/float_spec.lua
parent27c4b6b9bd90fbc3a41945f87ec944bd0ced8228 (diff)
downloadrneovim-86992a7bb1fbf7f4eb2632a473ae3dbe5221d50f.tar.gz
rneovim-86992a7bb1fbf7f4eb2632a473ae3dbe5221d50f.tar.bz2
rneovim-86992a7bb1fbf7f4eb2632a473ae3dbe5221d50f.zip
api: numerous small fixes
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r--test/functional/ui/float_spec.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua
index ac150bcd3e..6f68c08800 100644
--- a/test/functional/ui/float_spec.lua
+++ b/test/functional/ui/float_spec.lua
@@ -231,15 +231,15 @@ describe('floating windows', function()
it('API has proper error messages', function()
local buf = meths.create_buf(false,false)
- eq({false, "Invalid options key 'bork'"},
+ eq({false, "Invalid key 'bork'"},
meth_pcall(meths.open_win,buf, false, {width=20,height=2,bork=true}))
- eq({false, "'win' option is only valid with relative='win'"},
+ eq({false, "'win' key is only valid with relative='win'"},
meth_pcall(meths.open_win,buf, false, {width=20,height=2,relative='editor',row=0,col=0,win=0}))
- eq({false, "Only one of 'relative' and 'external' should be used"},
+ eq({false, "Only one of 'relative' and 'external' must be used"},
meth_pcall(meths.open_win,buf, false, {width=20,height=2,relative='editor',row=0,col=0,external=true}))
- eq({false, "Invalid value of 'relative' option"},
+ eq({false, "Invalid value of 'relative' key"},
meth_pcall(meths.open_win,buf, false, {width=20,height=2,relative='shell',row=0,col=0}))
- eq({false, "Invalid value of 'anchor' option"},
+ eq({false, "Invalid value of 'anchor' key"},
meth_pcall(meths.open_win,buf, false, {width=20,height=2,relative='editor',row=0,col=0,anchor='bottom'}))
eq({false, "All of 'relative', 'row', and 'col' has to be specified at once"},
meth_pcall(meths.open_win,buf, false, {width=20,height=2,relative='editor'}))