mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
vim-patch:8.1.1483: skipped tests are not properly listed
Problem: Skipped tests are not properly listed. Solution: Throw a "Skipped" exception instead of using ":finish" or ":return".5d30ff1964
Skips quite some (N/A) tests. vim-patch:8.1.0503: missing change to diff test (included incf1ffa916
)
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
" It helps to change the tabstop setting and force a redraw (e.g. see
|
" It helps to change the tabstop setting and force a redraw (e.g. see
|
||||||
" Test_breakindent08())
|
" Test_breakindent08())
|
||||||
if !exists('+breakindent')
|
if !exists('+breakindent')
|
||||||
finish
|
throw 'Skipped: breakindent option not supported'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
source view_util.vim
|
source view_util.vim
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
" Tests for the +clientserver feature.
|
" Tests for the +clientserver feature.
|
||||||
|
|
||||||
if !has('job') || !has('clientserver')
|
if !has('job') || !has('clientserver')
|
||||||
finish
|
throw 'Skipped: job and/or clientserver feature missing'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
source shared.vim
|
source shared.vim
|
||||||
|
@@ -22,7 +22,7 @@ endfunc
|
|||||||
" Debugger tests
|
" Debugger tests
|
||||||
func Test_Debugger()
|
func Test_Debugger()
|
||||||
if !CanRunVimInTerminal()
|
if !CanRunVimInTerminal()
|
||||||
return
|
throw 'Skipped: cannot run Vim in a terminal window'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Create a Vim script with some functions
|
" Create a Vim script with some functions
|
||||||
|
@@ -723,7 +723,7 @@ endfunc
|
|||||||
|
|
||||||
func Test_diff_with_cursorline()
|
func Test_diff_with_cursorline()
|
||||||
if !CanRunVimInTerminal()
|
if !CanRunVimInTerminal()
|
||||||
return
|
throw 'Skipped: cannot run Vim in a terminal window'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call writefile([
|
call writefile([
|
||||||
@@ -750,7 +750,7 @@ endfunc
|
|||||||
|
|
||||||
func Test_diff_of_diff()
|
func Test_diff_of_diff()
|
||||||
if !CanRunVimInTerminal()
|
if !CanRunVimInTerminal()
|
||||||
return
|
throw 'Skipped: cannot run Vim in a terminal window'
|
||||||
endif
|
endif
|
||||||
if !has("rightleft")
|
if !has("rightleft")
|
||||||
throw 'Skipped: rightleft not supported'
|
throw 'Skipped: rightleft not supported'
|
||||||
|
@@ -706,7 +706,7 @@ endfunc
|
|||||||
|
|
||||||
func Test_folds_with_rnu()
|
func Test_folds_with_rnu()
|
||||||
if !CanRunVimInTerminal()
|
if !CanRunVimInTerminal()
|
||||||
return
|
throw 'Skipped: cannot make screendumps'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call writefile([
|
call writefile([
|
||||||
|
@@ -532,7 +532,7 @@ endfunc
|
|||||||
|
|
||||||
func Test_cursorline_after_yank()
|
func Test_cursorline_after_yank()
|
||||||
if !CanRunVimInTerminal()
|
if !CanRunVimInTerminal()
|
||||||
return
|
throw 'Skipped: cannot make screendumps'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call writefile([
|
call writefile([
|
||||||
@@ -554,7 +554,7 @@ endfunc
|
|||||||
|
|
||||||
func Test_cursorline_with_visualmode()
|
func Test_cursorline_with_visualmode()
|
||||||
if !CanRunVimInTerminal()
|
if !CanRunVimInTerminal()
|
||||||
return
|
throw 'Skipped: cannot make screendumps'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call writefile([
|
call writefile([
|
||||||
|
@@ -496,7 +496,7 @@ func Test_incsearch_substitute_dump()
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
if !CanRunVimInTerminal()
|
if !CanRunVimInTerminal()
|
||||||
return
|
throw 'Skipped: cannot make screendumps'
|
||||||
endif
|
endif
|
||||||
call writefile([
|
call writefile([
|
||||||
\ 'set incsearch hlsearch scrolloff=0',
|
\ 'set incsearch hlsearch scrolloff=0',
|
||||||
@@ -527,7 +527,7 @@ endfunc
|
|||||||
|
|
||||||
func Test_incsearch_with_change()
|
func Test_incsearch_with_change()
|
||||||
if !has('timers') || !exists('+incsearch') || !CanRunVimInTerminal()
|
if !has('timers') || !exists('+incsearch') || !CanRunVimInTerminal()
|
||||||
return
|
throw 'Skipped: cannot make screendumps and/or timers feature and/or incsearch option missing'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call writefile([
|
call writefile([
|
||||||
|
@@ -63,7 +63,7 @@ endfunc
|
|||||||
|
|
||||||
func Test_detect_ambiwidth()
|
func Test_detect_ambiwidth()
|
||||||
if !CanRunVimInTerminal()
|
if !CanRunVimInTerminal()
|
||||||
return
|
throw 'Skipped: cannot run Vim in a terminal window'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Use the title termcap entries to output the escape sequence.
|
" Use the title termcap entries to output the escape sequence.
|
||||||
|
@@ -496,8 +496,8 @@ endfunc
|
|||||||
|
|
||||||
" Check highlighting for a small piece of C code with a screen dump.
|
" Check highlighting for a small piece of C code with a screen dump.
|
||||||
func Test_syntax_c()
|
func Test_syntax_c()
|
||||||
if !has('terminal')
|
if !CanRunVimInTerminal()
|
||||||
return
|
throw 'Skipped: cannot make screendumps'
|
||||||
endif
|
endif
|
||||||
call writefile([
|
call writefile([
|
||||||
\ '/* comment line at the top */',
|
\ '/* comment line at the top */',
|
||||||
|
@@ -558,7 +558,7 @@ endfunc
|
|||||||
|
|
||||||
func Test_tabpage_cmdheight()
|
func Test_tabpage_cmdheight()
|
||||||
if !CanRunVimInTerminal()
|
if !CanRunVimInTerminal()
|
||||||
throw 'Skipped: only works with terminal'
|
throw 'Skipped: cannot make screendumps'
|
||||||
endif
|
endif
|
||||||
call writefile([
|
call writefile([
|
||||||
\ 'set laststatus=2',
|
\ 'set laststatus=2',
|
||||||
|
Reference in New Issue
Block a user