aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/float_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-06-26 08:29:06 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2019-06-26 08:37:36 +0200
commit2a2d2882287c27f29dbe50ccee7973efd27c678f (patch)
tree544c60807114c158e9244ff5acd10f0528a9ff8f /test/functional/ui/float_spec.lua
parent10c983fabeae6f2cda93404f3aa4ee814baa43f3 (diff)
downloadrneovim-2a2d2882287c27f29dbe50ccee7973efd27c678f.tar.gz
rneovim-2a2d2882287c27f29dbe50ccee7973efd27c678f.tar.bz2
rneovim-2a2d2882287c27f29dbe50ccee7973efd27c678f.zip
compositor: handle scrolling of blended window
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r--test/functional/ui/float_spec.lua45
1 files changed, 45 insertions, 0 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua
index 3c7418167c..41ba542899 100644
--- a/test/functional/ui/float_spec.lua
+++ b/test/functional/ui/float_spec.lua
@@ -3774,6 +3774,8 @@ describe('floating windows', function()
[4] = {foreground = Screen.colors.Red, background = Screen.colors.LightMagenta},
[5] = {foreground = tonumber('0x990000'), background = tonumber('0xfff1ff')},
[6] = {foreground = tonumber('0x332533'), background = tonumber('0xfff1ff')},
+ [7] = {background = tonumber('0xffcfff'), bold = true, foreground = tonumber('0x0000d8')},
+ [8] = {background = Screen.colors.LightMagenta, bold = true, foreground = Screen.colors.Blue1}
})
insert([[
Lorem ipsum dolor sit amet, consectetur
@@ -3953,6 +3955,49 @@ describe('floating windows', function()
|
]])
end
+
+ -- Test scrolling by mouse
+ if multigrid then
+ meths.input_mouse('wheel', 'down', '', 4, 2, 2)
+ screen:expect{grid=[[
+ ## grid 1
+ [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|
+ [2:--------------------------------------------------]|
+ |
+ ## grid 2
+ Ut enim ad minim veniam, quis nostrud |
+ exercitation ullamco laboris nisi ut aliquip ex |
+ ea commodo consequat. Duis aute irure dolor in |
+ reprehenderit in voluptate velit esse cillum |
+ dolore eu fugiat nulla pariatur. Excepteur sint |
+ occaecat cupidatat non proident, sunt in culpa |
+ qui officia deserunt mollit anim id est |
+ laborum^. |
+ ## grid 4
+ {4:popup text}{1: }|
+ {8:~ }|
+ {8:~ }|
+ ]], float_pos={[4] = {{id = 1002}, "NW", 1, 2, 5, true}}}
+ else
+ meths.input_mouse('wheel', 'down', '', 0, 4, 7)
+ screen:expect([[
+ Ut enim ad minim veniam, quis nostrud |
+ exercitation ullamco laboris nisi ut aliquip ex |
+ ea co{5:popup}{6: con}{5:text}{3:at}. Duis aute irure dolor in |
+ repre{7:~}{3:enderit in vol}uptate velit esse cillum |
+ dolor{7:~}{3: eu fugiat nul}la pariatur. Excepteur sint |
+ occaecat cupidatat non proident, sunt in culpa |
+ qui officia deserunt mollit anim id est |
+ laborum^. |
+ |
+ ]])
+ end
end)
end