mirror of
https://github.com/neovim/neovim.git
synced 2025-10-22 17:11:49 +00:00
test/cmdline_spec: adjust "no-op"
(<Cmd>0<cr> is not really a no-op, it moves the cursor.)
Attempt to avoid flaky test:
test/functional/ui/cmdline_spec.lua @ 830
Failure message: ./test/functional/ui/screen.lua:579: Row 2 did not match.
Expected:
| |
|*{1:~ }|
|{3: }|
|:012345678901234567890123|
|456789^ |
Actual:
| |
|*{3: }|
|:012345678901234567890123|
|:012345678901234567890123|
|456789^ |
./test/functional/ui/screen.lua:579: in function '_wait'
./test/functional/ui/screen.lua:367: in function 'expect'
test/functional/ui/cmdline_spec.lua:841: in function <test/functional/ui/cmdline_spec.lua:830>
ref https://github.com/neovim/neovim/pull/10171#issuecomment-520134344
ref #10171
This commit is contained in:
@@ -828,7 +828,7 @@ describe('cmdline redraw', function()
|
||||
end)
|
||||
|
||||
it('with <Cmd>', function()
|
||||
command('cmap a <Cmd>0<CR>') -- no-op
|
||||
command('cmap a <Cmd>call sin(0)<CR>') -- no-op
|
||||
feed(':012345678901234567890123456789')
|
||||
screen:expect{grid=[[
|
||||
|
|
||||
|
||||
Reference in New Issue
Block a user