aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/float_spec.lua
diff options
context:
space:
mode:
authorJit Yao Yap <jityao@gmail.com>2019-03-22 01:12:20 +0800
committerBjörn Linse <bjorn.linse@gmail.com>2019-03-23 22:14:03 +0100
commit2a618e0ad03ecdc672f33df63f8542052ae9bfc4 (patch)
tree5120a9d8e4ddad20a4da578428b3df0b854ebbca /test/functional/ui/float_spec.lua
parent31fa064c683ae049fd392b8280e24aa14f0f4fa3 (diff)
downloadrneovim-2a618e0ad03ecdc672f33df63f8542052ae9bfc4.tar.gz
rneovim-2a618e0ad03ecdc672f33df63f8542052ae9bfc4.tar.bz2
rneovim-2a618e0ad03ecdc672f33df63f8542052ae9bfc4.zip
Update test
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r--test/functional/ui/float_spec.lua187
1 files changed, 59 insertions, 128 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua
index b1dda2f7a8..4a89345ee5 100644
--- a/test/functional/ui/float_spec.lua
+++ b/test/functional/ui/float_spec.lua
@@ -1109,7 +1109,6 @@ describe('floating windows', function()
end)
it('does not crash with inccommand #9379', function()
- screen:try_resize(30,15)
local expected_pos = {
[3]={{id=1001}, 'NW', 1, 2, 0, true},
}
@@ -1121,42 +1120,26 @@ describe('floating windows', function()
meths.open_win(buf, true, {relative='editor', width=30, height=3, row=2, col=0})
insert([[
- foo
- bar
-]])
+ foo
+ bar
+ ]])
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- {5:[No Name] }|
- |
- ## grid 2
- |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ {5:[No Name] }|
+ |
+ ## grid 2
+ |
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
## grid 3
{1:foo }|
{1:bar }|
@@ -1164,21 +1147,13 @@ describe('floating windows', function()
]], float_pos=expected_pos}
else
screen:expect([[
- |
- {0:~ }|
- {1:foo }|
- {1:bar }|
- {1:^ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {5:[No Name] }|
- |
+ |
+ {0:~ }|
+ {1:foo }{0: }|
+ {1:bar }{0: }|
+ {1:^ }{0: }|
+ {5:[No Name] }|
+ |
]])
end
@@ -1187,27 +1162,15 @@ describe('floating windows', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- {5:[Preview] }|
- :%s/.^ |
- ## grid 2
- |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ {5:[Preview] }|
+ :%s/.^ |
+ ## grid 2
+ |
## grid 3
{17:f}{1:oo }|
{17:b}{1:ar }|
@@ -1215,21 +1178,13 @@ describe('floating windows', function()
]], float_pos=expected_pos}
else
screen:expect([[
- |
- {0:~ }|
- {17:f}{1:oo }|
- {17:b}{1:ar }|
- {1: }|
- {5:[No Name] }|
- |1| {17:f}oo |
- |2| {17:b}ar |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {5:[Preview] }|
- :%s/.^ |
+ |
+ {5:[No Name] }|
+ {17:f}{1:oo } |
+ {17:b}{1:ar } |
+ {1: }{0: }|
+ {5:[Preview] }|
+ :%s/.^ |
]])
end
@@ -1238,35 +1193,19 @@ describe('floating windows', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- {5:[No Name] }|
- |
- ## grid 2
- |
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ [2:----------------------------------------]|
+ {5:[No Name] }|
+ |
+ ## grid 2
+ |
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
## grid 3
{1:foo }|
{1:bar }|
@@ -1274,21 +1213,13 @@ describe('floating windows', function()
]], float_pos=expected_pos}
else
screen:expect([[
- |
- {0:~ }|
- {1:foo }|
- {1:bar }|
- {1:^ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
- {5:[No Name] }|
- |
+ |
+ {0:~ }|
+ {1:foo }{0: }|
+ {1:bar }{0: }|
+ {1:^ }{0: }|
+ {5:[No Name] }|
+ |
]])
end
end)