diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-09-18 07:07:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-18 07:07:54 +0800 |
commit | 508dda0e6c327a1430fbb0d9a382fe6a848c933e (patch) | |
tree | a757d022bff502bfa9a76999ba3b95f2315fb177 | |
parent | 57ccd8241735d4867692ed179a14f484909f3621 (diff) | |
download | rneovim-508dda0e6c327a1430fbb0d9a382fe6a848c933e.tar.gz rneovim-508dda0e6c327a1430fbb0d9a382fe6a848c933e.tar.bz2 rneovim-508dda0e6c327a1430fbb0d9a382fe6a848c933e.zip |
test(ui/fold_spec): more testing for clicking on 'foldcolumn' (#25225)
-rw-r--r-- | test/functional/ui/fold_spec.lua | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/test/functional/ui/fold_spec.lua b/test/functional/ui/fold_spec.lua index a371b45e2b..c8ca5be282 100644 --- a/test/functional/ui/fold_spec.lua +++ b/test/functional/ui/fold_spec.lua @@ -424,9 +424,83 @@ 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([[ ## grid 1 |