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:
Björn Linse 2015-05-10 12:47:31 +02:00
parent 89d0e23624
commit 208013ae39

View File

@ -14,8 +14,17 @@ describe('terminal window', function()
describe('with colorcolumn set', function()
before_each(function()
feed('<c-\\><c-n>:set colorcolumn=20<cr>i')
wait()
feed('<c-\\><c-n>')
screen:expect([[
tty ready |
{2: } |
|
|
|
^ |
|
]])
feed(':set colorcolumn=20<cr>i')
end)
it('wont show the color column', function()