Tests: add syntax.vader

This commit is contained in:
Marco Hinz 2016-02-02 16:21:09 +01:00
parent 57252a4a56
commit 826b0f03e0
3 changed files with 29 additions and 0 deletions

24
test/feature/syntax.vader Normal file
View file

@ -0,0 +1,24 @@
Before:
Startify
doautocmd CursorMoved
Execute (Syntax: between brackets -> StartifyNumber):
Assert SyntaxAt() == 'StartifyNumber'
Execute (Syntax: brackets -> StartifyBracket):
Assert SyntaxAt(3) == 'StartifyBracket'
Execute (Syntax: first entry -> StartifySpecial):
Assert SyntaxAt(9) == 'StartifySpecial'
Execute (Syntax: section header -> StartifySection):
normal! 2j
Assert SyntaxAt(9) == 'StartifySection'
Execute (Syntax: second entry (separator) -> StartifySlash):
normal! 4j
Assert SyntaxAt(9) == 'StartifySlash'
Execute (Syntax: second entry (path) -> StartifyFile):
normal! 4j
Assert SyntaxAt(10) == 'StartifyFile'

View file

@ -4,3 +4,4 @@ Execute (:Startify command available):
Include: feature/buffer.vader
Include: feature/mapping.vader
Include: feature/session.vader
Include: feature/syntax.vader

View file

@ -1,9 +1,13 @@
filetype off
set runtimepath+=vader.vim
set runtimepath+=..
filetype plugin on
syntax enable
set hidden
set sessionoptions-=tabpages
let g:startify_session_dir = 'include'
let g:startify_relative_path = 1