functests: Fix legacy/030_fileformats_spec test

For some reason it had a number of not working bwipeout! commands. execute() 
successfully hid the failures, command() is not that permissive.
This commit is contained in:
ZyX 2017-04-09 01:38:50 +03:00
parent 65fb622000
commit a1b81f7eca

View File

@ -111,7 +111,7 @@ describe('fileformats option', function()
feed('ggO<C-R>=&ffs<CR>:<C-R>=&ff<CR><ESC>') feed('ggO<C-R>=&ffs<CR>:<C-R>=&ff<CR><ESC>')
wait() wait()
command('w! XXtt54') command('w! XXtt54')
command('bwipe XXEol') command('bwipeout! XXEol')
command('set fileformats=dos,mac') command('set fileformats=dos,mac')
command('e! XXUxDs') command('e! XXUxDs')
command('w! XXtt61') command('w! XXtt61')
@ -120,7 +120,7 @@ describe('fileformats option', function()
feed('ggO<C-R>=&ffs<CR>:<C-R>=&ff<CR><ESC>') feed('ggO<C-R>=&ffs<CR>:<C-R>=&ff<CR><ESC>')
wait() wait()
command('w! XXtt62') command('w! XXtt62')
command('bwipe XXUxMac') command('bwipeout! XXUxMac')
command('e! XXUxDsMc') command('e! XXUxDsMc')
command('w! XXtt63') command('w! XXtt63')
command('bwipe XXUxDsMc') command('bwipe XXUxDsMc')
@ -128,7 +128,7 @@ describe('fileformats option', function()
feed('ggO<C-R>=&ffs<CR>:<C-R>=&ff<CR><ESC>') feed('ggO<C-R>=&ffs<CR>:<C-R>=&ff<CR><ESC>')
wait() wait()
command('w! XXtt64') command('w! XXtt64')
command('bwipe XXMacEol') command('bwipeout! XXMacEol')
-- Try reading and writing with 'fileformats' set to three formats. -- Try reading and writing with 'fileformats' set to three formats.
command('set fileformats=unix,dos,mac') command('set fileformats=unix,dos,mac')
@ -139,7 +139,7 @@ describe('fileformats option', function()
feed('ggO<C-R>=&ffs<CR>:<C-R>=&ff<CR><ESC>') feed('ggO<C-R>=&ffs<CR>:<C-R>=&ff<CR><ESC>')
wait() wait()
command('w! XXtt72') command('w! XXtt72')
command('bwipe XXEol') command('bwipeout! XXEol')
command('set fileformats=mac,dos,unix') command('set fileformats=mac,dos,unix')
command('e! XXUxDsMc') command('e! XXUxDsMc')
command('w! XXtt81') command('w! XXtt81')
@ -148,7 +148,7 @@ describe('fileformats option', function()
feed('ggO<C-R>=&ffs<CR>:<C-R>=&ff<CR><ESC>') feed('ggO<C-R>=&ffs<CR>:<C-R>=&ff<CR><ESC>')
wait() wait()
command('w! XXtt82') command('w! XXtt82')
command('bwipe XXEol') command('bwipeout! XXEol')
-- Try with 'binary' set. -- Try with 'binary' set.
command('set fileformats=mac,unix,dos') command('set fileformats=mac,unix,dos')
command('set binary') command('set binary')