aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/ui_event_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-12-22 16:06:46 -0800
committerGitHub <noreply@github.com>2024-12-22 16:06:46 -0800
commit7e1c1ff7fcf2cbc564c90a656124b70ad8bb4d5f (patch)
treea7f30855c9ef3304b0d7664413fcfebccc6b638b /test/functional/lua/ui_event_spec.lua
parent665a0e85c4788cb2847e270c333c0aee306f07ad (diff)
parenta10636fbe7bb4dba45c42c64548e5e32fe8f8d12 (diff)
downloadrneovim-7e1c1ff7fcf2cbc564c90a656124b70ad8bb4d5f.tar.gz
rneovim-7e1c1ff7fcf2cbc564c90a656124b70ad8bb4d5f.tar.bz2
rneovim-7e1c1ff7fcf2cbc564c90a656124b70ad8bb4d5f.zip
Merge #31661 cmdline_show/hide events
Diffstat (limited to 'test/functional/lua/ui_event_spec.lua')
-rw-r--r--test/functional/lua/ui_event_spec.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/lua/ui_event_spec.lua b/test/functional/lua/ui_event_spec.lua
index 25cc46e260..7e890e8ae0 100644
--- a/test/functional/lua/ui_event_spec.lua
+++ b/test/functional/lua/ui_event_spec.lua
@@ -261,9 +261,11 @@ describe('vim.ui_attach', function()
lled in a fast event context |
{1:~ }|
]],
+ cmdline = { { abort = false } },
messages = {
{
content = { { 'E122: Function Foo already exists, add ! to replace it', 9, 6 } },
+ history = true,
kind = 'emsg',
},
},
@@ -278,9 +280,11 @@ describe('vim.ui_attach', function()
Y)? |
{1:~ }|
]],
+ cmdline = { { abort = false } },
messages = {
{
content = { { 'replace with Replacement (y/n/a/q/l/^E/^Y)?', 6, 18 } },
+ history = true,
kind = 'confirm_sub',
},
},
@@ -294,13 +298,16 @@ describe('vim.ui_attach', function()
e mouse (q or empty cancels): |
{1:^~ }|
]],
+ cmdline = { { abort = false } },
messages = {
{
content = { { 'Select:\nOne\nTwo\n' } },
+ history = false,
kind = 'list_cmd',
},
{
content = { { 'Type number and <Enter> or click with the mouse (q or empty cancels): ' } },
+ history = false,
kind = 'number_prompt',
},
},
@@ -359,6 +366,7 @@ describe('vim.ui_attach', function()
{9:back from ns: 1.} |
{100:Press ENTER or type command to continue}^ |
]],
+ cmdline = { { abort = false } },
})
feed('<cr>')
-- Also when scheduled
@@ -378,6 +386,7 @@ describe('vim.ui_attach', function()
6,
},
},
+ history = true,
kind = 'lua_error',
},
{
@@ -388,10 +397,12 @@ describe('vim.ui_attach', function()
6,
},
},
+ history = true,
kind = 'lua_error',
},
{
content = { { 'Press ENTER or type command to continue', 100, 18 } },
+ history = false,
kind = 'return_prompt',
},
},