summaryrefslogtreecommitdiff
path: root/src/testdir/test_options.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-11-04 16:41:20 +0100
committerBram Moolenaar <Bram@vim.org>2016-11-04 16:41:20 +0100
commit9376f5f482a4d579436bf364778c2d8ab8e2f22d (patch)
treeddc08673829b9705e7f30948c61ddac4b997944d /src/testdir/test_options.vim
parentd0b5138ba4bccff8a744c99836041ef6322ed39a (diff)
downloadvim-git-9376f5f482a4d579436bf364778c2d8ab8e2f22d.tar.gz
patch 8.0.0057v8.0.0057
Problem: Tests fail without the 'keymap' features. Solution: Check for feature in test.
Diffstat (limited to 'src/testdir/test_options.vim')
-rw-r--r--src/testdir/test_options.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim
index dee435c38..3b6f6625f 100644
--- a/src/testdir/test_options.vim
+++ b/src/testdir/test_options.vim
@@ -49,6 +49,9 @@ func Test_signcolumn()
endfunc
func Test_filetype_valid()
+ if !has('autocmd')
+ return
+ endif
set ft=valid_name
call assert_equal("valid_name", &filetype)
set ft=valid-name
@@ -66,6 +69,9 @@ func Test_filetype_valid()
endfunc
func Test_syntax_valid()
+ if !has('syntax')
+ return
+ endif
set syn=valid_name
call assert_equal("valid_name", &syntax)
set syn=valid-name
@@ -83,6 +89,9 @@ func Test_syntax_valid()
endfunc
func Test_keymap_valid()
+ if !has('keymap')
+ return
+ endif
call assert_fails(":set kmp=valid_name", "E544:")
call assert_fails(":set kmp=valid_name", "valid_name")
call assert_fails(":set kmp=valid-name", "E544:")