mirror of
https://github.com/neovim/neovim.git
synced 2025-12-17 11:55:34 +00:00
Update test
This commit is contained in:
@@ -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},
|
||||
}
|
||||
@@ -1123,24 +1122,16 @@ describe('floating windows', function()
|
||||
insert([[
|
||||
foo
|
||||
bar
|
||||
]])
|
||||
]])
|
||||
|
||||
if multigrid then
|
||||
screen:expect{grid=[[
|
||||
## grid 1
|
||||
[2:------------------------------]|
|
||||
[2:------------------------------]|
|
||||
[2:------------------------------]|
|
||||
[2:------------------------------]|
|
||||
[2:------------------------------]|
|
||||
[2:------------------------------]|
|
||||
[2:------------------------------]|
|
||||
[2:------------------------------]|
|
||||
[2:------------------------------]|
|
||||
[2:------------------------------]|
|
||||
[2:------------------------------]|
|
||||
[2:------------------------------]|
|
||||
[2:------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
{5:[No Name] }|
|
||||
|
|
||||
## grid 2
|
||||
@@ -1149,14 +1140,6 @@ describe('floating windows', function()
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
## grid 3
|
||||
{1:foo }|
|
||||
{1:bar }|
|
||||
@@ -1166,17 +1149,9 @@ describe('floating windows', function()
|
||||
screen:expect([[
|
||||
|
|
||||
{0:~ }|
|
||||
{1:foo }|
|
||||
{1:bar }|
|
||||
{1:^ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{1:foo }{0: }|
|
||||
{1:bar }{0: }|
|
||||
{1:^ }{0: }|
|
||||
{5:[No Name] }|
|
||||
|
|
||||
]])
|
||||
@@ -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:------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
{5:[Preview] }|
|
||||
:%s/.^ |
|
||||
## grid 2
|
||||
|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
## grid 3
|
||||
{17:f}{1:oo }|
|
||||
{17:b}{1:ar }|
|
||||
@@ -1216,18 +1179,10 @@ describe('floating windows', function()
|
||||
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:~ }|
|
||||
{17:f}{1:oo } |
|
||||
{17:b}{1:ar } |
|
||||
{1: }{0: }|
|
||||
{5:[Preview] }|
|
||||
:%s/.^ |
|
||||
]])
|
||||
@@ -1238,19 +1193,11 @@ 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:------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
[2:----------------------------------------]|
|
||||
{5:[No Name] }|
|
||||
|
|
||||
## grid 2
|
||||
@@ -1259,14 +1206,6 @@ describe('floating windows', function()
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
## grid 3
|
||||
{1:foo }|
|
||||
{1:bar }|
|
||||
@@ -1276,17 +1215,9 @@ describe('floating windows', function()
|
||||
screen:expect([[
|
||||
|
|
||||
{0:~ }|
|
||||
{1:foo }|
|
||||
{1:bar }|
|
||||
{1:^ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{1:foo }{0: }|
|
||||
{1:bar }{0: }|
|
||||
{1:^ }{0: }|
|
||||
{5:[No Name] }|
|
||||
|
|
||||
]])
|
||||
|
||||
Reference in New Issue
Block a user