Tests: add syntax.vader
This commit is contained in:
parent
57252a4a56
commit
826b0f03e0
24
test/feature/syntax.vader
Normal file
24
test/feature/syntax.vader
Normal 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'
|
|
@ -4,3 +4,4 @@ Execute (:Startify command available):
|
|||
Include: feature/buffer.vader
|
||||
Include: feature/mapping.vader
|
||||
Include: feature/session.vader
|
||||
Include: feature/syntax.vader
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue