mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test/terminal: fix indeterminism in colorcolumn screen test
Previously, the screen test was expecting the screen state to be identical to the previous screen test in `thelpers.screen_setup()`, which is indeterministic. (The later screen test can accidentally still see the previous identical state). The solution is to add a test for a intermediate different state.
This commit is contained in:
parent
89d0e23624
commit
208013ae39
@ -14,8 +14,17 @@ describe('terminal window', function()
|
|||||||
|
|
||||||
describe('with colorcolumn set', function()
|
describe('with colorcolumn set', function()
|
||||||
before_each(function()
|
before_each(function()
|
||||||
feed('<c-\\><c-n>:set colorcolumn=20<cr>i')
|
feed('<c-\\><c-n>')
|
||||||
wait()
|
screen:expect([[
|
||||||
|
tty ready |
|
||||||
|
{2: } |
|
||||||
|
|
|
||||||
|
|
|
||||||
|
|
|
||||||
|
^ |
|
||||||
|
|
|
||||||
|
]])
|
||||||
|
feed(':set colorcolumn=20<cr>i')
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('wont show the color column', function()
|
it('wont show the color column', function()
|
||||||
|
Loading…
Reference in New Issue
Block a user