mirror of
https://github.com/neovim/neovim.git
synced 2025-10-22 17:11:49 +00:00
tests: make 'win_update redraws lines properly' more readable (#11068)
This commit is contained in:
@@ -963,7 +963,7 @@ end)
|
|||||||
it('win_update redraws lines properly', function()
|
it('win_update redraws lines properly', function()
|
||||||
local screen
|
local screen
|
||||||
clear()
|
clear()
|
||||||
screen = Screen.new(30, 10)
|
screen = Screen.new(50, 10)
|
||||||
screen:attach()
|
screen:attach()
|
||||||
screen:set_default_attr_ids({
|
screen:set_default_attr_ids({
|
||||||
[1] = {bold = true, foreground = Screen.colors.Blue1},
|
[1] = {bold = true, foreground = Screen.colors.Blue1},
|
||||||
@@ -993,7 +993,7 @@ it('win_update redraws lines properly', function()
|
|||||||
2
|
2
|
||||||
1a
|
1a
|
||||||
]])
|
]])
|
||||||
command("vnew")
|
command("vnew left")
|
||||||
insert([[
|
insert([[
|
||||||
2
|
2
|
||||||
2a
|
2a
|
||||||
@@ -1002,16 +1002,16 @@ it('win_update redraws lines properly', function()
|
|||||||
command("windo diffthis")
|
command("windo diffthis")
|
||||||
command("windo 1")
|
command("windo 1")
|
||||||
screen:expect{grid=[[
|
screen:expect{grid=[[
|
||||||
{13: }{16:-------}{14:│}{13: }{15:^1 }|
|
{13: }{16:-----------------------}{14:│}{13: }{15:^1 }|
|
||||||
{13: }{16:-------}{14:│}{13: }{15: }|
|
{13: }{16:-----------------------}{14:│}{13: }{15: }|
|
||||||
{13: }{16:-------}{14:│}{13: }{15: }|
|
{13: }{16:-----------------------}{14:│}{13: }{15: }|
|
||||||
{13: }2 {14:│}{13: }2 |
|
{13: }2 {14:│}{13: }2 |
|
||||||
{13: }{17:2}{18:a }{14:│}{13: }{17:1}{18:a }|
|
{13: }{17:2}{18:a }{14:│}{13: }{17:1}{18:a }|
|
||||||
{13: }{15:2b }{14:│}{13: }{16:------------------}|
|
{13: }{15:2b }{14:│}{13: }{16:----------------------}|
|
||||||
{13: } {14:│}{13: } |
|
{13: } {14:│}{13: } |
|
||||||
{1:~ }{14:│}{1:~ }|
|
{1:~ }{14:│}{1:~ }|
|
||||||
{14:<me] [+] }{12:[No Name] [+] }|
|
{14:left [+] }{12:[No Name] [+] }|
|
||||||
|
|
|
|
||||||
]]}
|
]]}
|
||||||
feed('<C-e>')
|
feed('<C-e>')
|
||||||
feed('<C-e>')
|
feed('<C-e>')
|
||||||
@@ -1019,15 +1019,15 @@ it('win_update redraws lines properly', function()
|
|||||||
feed('<C-y>')
|
feed('<C-y>')
|
||||||
feed('<C-y>')
|
feed('<C-y>')
|
||||||
screen:expect{grid=[[
|
screen:expect{grid=[[
|
||||||
{13: }{16:-------}{14:│}{13: }{15:1 }|
|
{13: }{16:-----------------------}{14:│}{13: }{15:1 }|
|
||||||
{13: }{16:-------}{14:│}{13: }{15: }|
|
{13: }{16:-----------------------}{14:│}{13: }{15: }|
|
||||||
{13: }{16:-------}{14:│}{13: }{15:^ }|
|
{13: }{16:-----------------------}{14:│}{13: }{15:^ }|
|
||||||
{13: }2 {14:│}{13: }2 |
|
{13: }2 {14:│}{13: }2 |
|
||||||
{13: }{17:2}{18:a }{14:│}{13: }{17:1}{18:a }|
|
{13: }{17:2}{18:a }{14:│}{13: }{17:1}{18:a }|
|
||||||
{13: }{15:2b }{14:│}{13: }{16:------------------}|
|
{13: }{15:2b }{14:│}{13: }{16:----------------------}|
|
||||||
{13: } {14:│}{13: } |
|
{13: } {14:│}{13: } |
|
||||||
{1:~ }{14:│}{1:~ }|
|
{1:~ }{14:│}{1:~ }|
|
||||||
{14:<me] [+] }{12:[No Name] [+] }|
|
{14:left [+] }{12:[No Name] [+] }|
|
||||||
|
|
|
|
||||||
]]}
|
]]}
|
||||||
end)
|
end)
|
||||||
|
Reference in New Issue
Block a user