diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-06-14 13:36:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-14 13:36:47 -0700 |
commit | 4284abd89a5f1189732876e29b76498f967417f9 (patch) | |
tree | e16cef9f69eb3f4e8037134946feb1325480f8ad /test/functional/ui/float_spec.lua | |
parent | 2f0e5e7e67faa469f5d12a66ec084ab9c35d8c6b (diff) | |
parent | 5b6edc852fe9434e0d42602083d113e3b2efc253 (diff) | |
download | rneovim-4284abd89a5f1189732876e29b76498f967417f9.tar.gz rneovim-4284abd89a5f1189732876e29b76498f967417f9.tar.bz2 rneovim-4284abd89a5f1189732876e29b76498f967417f9.zip |
Merge pull request #14804 from clason/rounded-borders
[RDY] feat(float): add rounded borders preset
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r-- | test/functional/ui/float_spec.lua | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua index 3a9dcb8b01..9fa0ad08f1 100644 --- a/test/functional/ui/float_spec.lua +++ b/test/functional/ui/float_spec.lua @@ -711,6 +711,49 @@ describe('float window', function() ]]} end + meths.win_set_config(win, {border="rounded"}) + if multigrid then + screen:expect{grid=[[ + ## grid 1 + [2:----------------------------------------]| + [2:----------------------------------------]| + [2:----------------------------------------]| + [2:----------------------------------------]| + [2:----------------------------------------]| + [2:----------------------------------------]| + [3:----------------------------------------]| + ## grid 2 + ^ | + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + ## grid 3 + | + ## grid 5 + {5:╭─────────╮}| + {5:│}{1: halloj! }{5:│}| + {5:│}{1: BORDAA }{5:│}| + {5:╰─────────╯}| + ]], float_pos={ + [5] = { { id = 1002 }, "NW", 1, 2, 5, true } + }, win_viewport={ + [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0}; + [5] = {win = {id = 1002}, topline = 0, botline = 2, curline = 0, curcol = 0}; + }} + else + screen:expect{grid=[[ + ^ | + {0:~ }| + {0:~ }{5:╭─────────╮}{0: }| + {0:~ }{5:│}{1: halloj! }{5:│}{0: }| + {0:~ }{5:│}{1: BORDAA }{5:│}{0: }| + {0:~ }{5:╰─────────╯}{0: }| + | + ]]} + end + meths.win_set_config(win, {border="solid"}) if multigrid then screen:expect{grid=[[ |