Mercurial > vim
diff src/testdir/test_startup.vim @ 21765:08940efa6b4e v8.2.1432
patch 8.2.1432: various inconsistencies in test files
Commit: https://github.com/vim/vim/commit/6d91bcb4d23b5c6a0be72c384beaf385e2d9d606
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 12 18:50:36 2020 +0200
patch 8.2.1432: various inconsistencies in test files
Problem: Various inconsistencies in test files.
Solution: Add modelines where they were missing. Use Check commands instead
of silently skipping over tests. Adjust indents and comments.
(Ken Takata, closes #6695)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Aug 2020 19:00:08 +0200 |
parents | c44867526ad5 |
children | 1503ecd54f8a |
line wrap: on
line diff
--- a/src/testdir/test_startup.vim +++ b/src/testdir/test_startup.vim @@ -21,9 +21,7 @@ endfunc " 2. packages " 3. plugins in after directories func Test_after_comes_later() - if !has('packages') - return - endif + CheckFeature packages let before =<< trim [CODE] set nocp viminfo+=nviminfo set guioptions+=M @@ -80,9 +78,7 @@ func Test_after_comes_later() endfunc func Test_pack_in_rtp_when_plugins_run() - if !has('packages') - return - endif + CheckFeature packages let before =<< trim [CODE] set nocp viminfo+=nviminfo set guioptions+=M @@ -113,9 +109,8 @@ func Test_pack_in_rtp_when_plugins_run() endfunc func Test_help_arg() - if !has('unix') && has('gui') - " this doesn't work with gvim on MS-Windows - return + if !has('unix') && has('gui_running') + throw 'Skipped: does not work with gvim on MS-Windows' endif if RunVim([], [], '--help >Xtestout') let lines = readfile('Xtestout') @@ -554,9 +549,7 @@ func Test_file_args() endfunc func Test_startuptime() - if !has('startuptime') - return - endif + CheckFeature startuptime let after = ['qall'] if RunVim([], after, '--startuptime Xtestout one') let lines = readfile('Xtestout')