aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/popupmenu_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-12-18 07:09:32 +0800
committerGitHub <noreply@github.com>2023-12-18 07:09:32 +0800
commit75b8f4c8cbe595ff868c1a0c59edbdf9658e46b0 (patch)
treee42e772cff002934070ee702998a747dab84e327 /test/functional/ui/popupmenu_spec.lua
parentd82a586a9e39f1d346c1aea78167a85c586ed3f4 (diff)
downloadrneovim-75b8f4c8cbe595ff868c1a0c59edbdf9658e46b0.tar.gz
rneovim-75b8f4c8cbe595ff868c1a0c59edbdf9658e46b0.tar.bz2
rneovim-75b8f4c8cbe595ff868c1a0c59edbdf9658e46b0.zip
test(core/job_spec): fix flakiness (#26623)
Diffstat (limited to 'test/functional/ui/popupmenu_spec.lua')
-rw-r--r--test/functional/ui/popupmenu_spec.lua87
1 files changed, 10 insertions, 77 deletions
diff --git a/test/functional/ui/popupmenu_spec.lua b/test/functional/ui/popupmenu_spec.lua
index 956173b86e..8ad5283b94 100644
--- a/test/functional/ui/popupmenu_spec.lua
+++ b/test/functional/ui/popupmenu_spec.lua
@@ -1431,8 +1431,7 @@ describe('builtin popupmenu', function()
feed('<C-N>')
screen:expect([[
1info |
- {1:~ }|
- {1:~ }|
+ {1:~ }|*2
{3:[Scratch] [Preview] }|
one^ |
{s:one }{1: }|
@@ -1497,28 +1496,11 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
+ [2:------------------------------]|*10
[3:------------------------------]|
## grid 2
one^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*9
## grid 3
{2:-- }{5:match 1 of 3} |
## grid 4
@@ -1538,12 +1520,7 @@ describe('builtin popupmenu', function()
{s:one }{n:1info}{1: }|
{n:two }{1: }|
{n:three }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
{2:-- }{5:match 1 of 3} |
]], unchanged = true}
end
@@ -1554,28 +1531,11 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
+ [2:------------------------------]|*10
[3:------------------------------]|
## grid 2
three^ |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*9
## grid 3
{2:-- }{5:match 3 of 3} |
## grid 4
@@ -1595,12 +1555,7 @@ describe('builtin popupmenu', function()
{n:one 3info}{1: }|
{n:two }{1: }|
{s:three }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
{2:-- }{5:match 3 of 3} |
]]}
end
@@ -1615,28 +1570,11 @@ describe('builtin popupmenu', function()
if multigrid then
screen:expect{grid=[[
## grid 1
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
- [2:------------------------------]|
+ [2:------------------------------]|*10
[3:------------------------------]|
## grid 2
itesttesttesttesttesone^t |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*9
## grid 3
{2:-- }{5:match 1 of 3} |
## grid 5
@@ -1659,12 +1597,7 @@ describe('builtin popupmenu', function()
{1:~}{n:1info}{1: }{s: one }{1: }|
{1:~}{n: }{1: }{n: two }{1: }|
{1:~ }{n: three }{1: }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*6
{2:-- }{5:match 1 of 3} |
]]}
end