From 86992a7bb1fbf7f4eb2632a473ae3dbe5221d50f Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Sat, 16 Mar 2019 13:57:50 +0100 Subject: api: numerous small fixes --- test/functional/ui/float_spec.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test') 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'})) -- cgit