test(ui/fold_spec): more testing for clicking on 'foldcolumn' (#25225)

This commit is contained in:
zeertzjq 2023-09-18 07:07:54 +08:00 committed by GitHub
parent 57ccd82417
commit 508dda0e6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -424,8 +424,82 @@ describe("folded lines", function()
]])
end
if multigrid then
meths.input_mouse('left', 'press', '', 2, 0, 0)
screen:expect([[
## grid 1
[2:---------------------------------------------]|
[2:---------------------------------------------]|
[2:---------------------------------------------]|
[2:---------------------------------------------]|
[2:---------------------------------------------]|
[2:---------------------------------------------]|
[2:---------------------------------------------]|
[3:---------------------------------------------]|
## grid 2
{7: }{5:^+-- 6 lines: aa···························}|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
## grid 3
:set norightleft |
]])
else
meths.input_mouse('left', 'press', '', 0, 0, 0)
screen:expect([[
{7: }{5:^+-- 6 lines: aa···························}|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
:set norightleft |
]])
end
-- Add a winbar to avoid double-clicks
command('setlocal winbar=!!!!!!')
if multigrid then
meths.input_mouse('left', 'press', '', 2, 1, 0)
screen:expect([[
## grid 1
[2:---------------------------------------------]|
[2:---------------------------------------------]|
[2:---------------------------------------------]|
[2:---------------------------------------------]|
[2:---------------------------------------------]|
[2:---------------------------------------------]|
[2:---------------------------------------------]|
[3:---------------------------------------------]|
## grid 2
{11:!!!!!! }|
{7:}{5:^+--- 5 lines: aa··························}|
{7: }ff |
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
## grid 3
:set norightleft |
]])
else
meths.input_mouse('left', 'press', '', 0, 1, 0)
screen:expect([[
{11:!!!!!! }|
{7:}{5:^+--- 5 lines: aa··························}|
{7: }ff |
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
:set norightleft |
]])
end
if multigrid then
meths.input_mouse('left', 'press', '', 2, 1, 1)
screen:expect([[