mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
65fb622000
commit
a1b81f7eca
@ -111,7 +111,7 @@ describe('fileformats option', function()
|
||||
feed('ggO<C-R>=&ffs<CR>:<C-R>=&ff<CR><ESC>')
|
||||
wait()
|
||||
command('w! XXtt54')
|
||||
command('bwipe XXEol')
|
||||
command('bwipeout! XXEol')
|
||||
command('set fileformats=dos,mac')
|
||||
command('e! XXUxDs')
|
||||
command('w! XXtt61')
|
||||
@ -120,7 +120,7 @@ describe('fileformats option', function()
|
||||
feed('ggO<C-R>=&ffs<CR>:<C-R>=&ff<CR><ESC>')
|
||||
wait()
|
||||
command('w! XXtt62')
|
||||
command('bwipe XXUxMac')
|
||||
command('bwipeout! XXUxMac')
|
||||
command('e! XXUxDsMc')
|
||||
command('w! XXtt63')
|
||||
command('bwipe XXUxDsMc')
|
||||
@ -128,7 +128,7 @@ describe('fileformats option', function()
|
||||
feed('ggO<C-R>=&ffs<CR>:<C-R>=&ff<CR><ESC>')
|
||||
wait()
|
||||
command('w! XXtt64')
|
||||
command('bwipe XXMacEol')
|
||||
command('bwipeout! XXMacEol')
|
||||
|
||||
-- Try reading and writing with 'fileformats' set to three formats.
|
||||
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>')
|
||||
wait()
|
||||
command('w! XXtt72')
|
||||
command('bwipe XXEol')
|
||||
command('bwipeout! XXEol')
|
||||
command('set fileformats=mac,dos,unix')
|
||||
command('e! XXUxDsMc')
|
||||
command('w! XXtt81')
|
||||
@ -148,7 +148,7 @@ describe('fileformats option', function()
|
||||
feed('ggO<C-R>=&ffs<CR>:<C-R>=&ff<CR><ESC>')
|
||||
wait()
|
||||
command('w! XXtt82')
|
||||
command('bwipe XXEol')
|
||||
command('bwipeout! XXEol')
|
||||
-- Try with 'binary' set.
|
||||
command('set fileformats=mac,unix,dos')
|
||||
command('set binary')
|
||||
|
Loading…
Reference in New Issue
Block a user