aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/diff_spec.lua
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-09-22 14:58:38 +0200
committerGitHub <noreply@github.com>2019-09-22 14:58:38 +0200
commit6807779c68220e738b99486118c97c0ebc108b0e (patch)
tree4ce2e864a6c84e0f7a2fd2ee6a9a5c7adf0182b3 /test/functional/ui/diff_spec.lua
parented11721b6bb36042ab065b5045c8eb01115b8902 (diff)
downloadrneovim-6807779c68220e738b99486118c97c0ebc108b0e.tar.gz
rneovim-6807779c68220e738b99486118c97c0ebc108b0e.tar.bz2
rneovim-6807779c68220e738b99486118c97c0ebc108b0e.zip
tests: make 'win_update redraws lines properly' more readable (#11068)
Diffstat (limited to 'test/functional/ui/diff_spec.lua')
-rw-r--r--test/functional/ui/diff_spec.lua44
1 files changed, 22 insertions, 22 deletions
diff --git a/test/functional/ui/diff_spec.lua b/test/functional/ui/diff_spec.lua
index 572ed5c695..252991aca7 100644
--- a/test/functional/ui/diff_spec.lua
+++ b/test/functional/ui/diff_spec.lua
@@ -963,7 +963,7 @@ end)
it('win_update redraws lines properly', function()
local screen
clear()
- screen = Screen.new(30, 10)
+ screen = Screen.new(50, 10)
screen:attach()
screen:set_default_attr_ids({
[1] = {bold = true, foreground = Screen.colors.Blue1},
@@ -993,7 +993,7 @@ it('win_update redraws lines properly', function()
2
1a
]])
- command("vnew")
+ command("vnew left")
insert([[
2
2a
@@ -1002,16 +1002,16 @@ it('win_update redraws lines properly', function()
command("windo diffthis")
command("windo 1")
screen:expect{grid=[[
- {13: }{16:-------}{14:│}{13: }{15:^1 }|
- {13: }{16:-------}{14:│}{13: }{15: }|
- {13: }{16:-------}{14:│}{13: }{15: }|
- {13: }2 {14:│}{13: }2 |
- {13: }{17:2}{18:a }{14:│}{13: }{17:1}{18:a }|
- {13: }{15:2b }{14:│}{13: }{16:------------------}|
- {13: } {14:│}{13: } |
- {1:~ }{14:│}{1:~ }|
- {14:<me] [+] }{12:[No Name] [+] }|
- |
+ {13: }{16:-----------------------}{14:│}{13: }{15:^1 }|
+ {13: }{16:-----------------------}{14:│}{13: }{15: }|
+ {13: }{16:-----------------------}{14:│}{13: }{15: }|
+ {13: }2 {14:│}{13: }2 |
+ {13: }{17:2}{18:a }{14:│}{13: }{17:1}{18:a }|
+ {13: }{15:2b }{14:│}{13: }{16:----------------------}|
+ {13: } {14:│}{13: } |
+ {1:~ }{14:│}{1:~ }|
+ {14:left [+] }{12:[No Name] [+] }|
+ |
]]}
feed('<C-e>')
feed('<C-e>')
@@ -1019,15 +1019,15 @@ it('win_update redraws lines properly', function()
feed('<C-y>')
feed('<C-y>')
screen:expect{grid=[[
- {13: }{16:-------}{14:│}{13: }{15:1 }|
- {13: }{16:-------}{14:│}{13: }{15: }|
- {13: }{16:-------}{14:│}{13: }{15:^ }|
- {13: }2 {14:│}{13: }2 |
- {13: }{17:2}{18:a }{14:│}{13: }{17:1}{18:a }|
- {13: }{15:2b }{14:│}{13: }{16:------------------}|
- {13: } {14:│}{13: } |
- {1:~ }{14:│}{1:~ }|
- {14:<me] [+] }{12:[No Name] [+] }|
- |
+ {13: }{16:-----------------------}{14:│}{13: }{15:1 }|
+ {13: }{16:-----------------------}{14:│}{13: }{15: }|
+ {13: }{16:-----------------------}{14:│}{13: }{15:^ }|
+ {13: }2 {14:│}{13: }2 |
+ {13: }{17:2}{18:a }{14:│}{13: }{17:1}{18:a }|
+ {13: }{15:2b }{14:│}{13: }{16:----------------------}|
+ {13: } {14:│}{13: } |
+ {1:~ }{14:│}{1:~ }|
+ {14:left [+] }{12:[No Name] [+] }|
+ |
]]}
end)