mirror of
https://github.com/junegunn/limelight.vim.git
synced 2025-11-10 20:13:47 -05:00
Add failing test case for invalid message (#4)
This commit is contained in:
@@ -100,6 +100,11 @@ Execute (Unsupported. but g:limelight_conceal_???fg defined):
|
|||||||
else
|
else
|
||||||
colo default
|
colo default
|
||||||
let &t_Co = 256
|
let &t_Co = 256
|
||||||
|
|
||||||
|
" Cannot enable it without g:limelight_conceal_ctermfg
|
||||||
|
Limelight
|
||||||
|
AssertOff
|
||||||
|
|
||||||
let g:limelight_conceal_ctermfg = 240
|
let g:limelight_conceal_ctermfg = 240
|
||||||
Limelight
|
Limelight
|
||||||
AssertOn
|
AssertOn
|
||||||
@@ -114,8 +119,11 @@ Execute (Unsupported. but g:limelight_conceal_???fg defined):
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" However, you're still not allowed to pass argument to Limelight command
|
" However, you're still not allowed to pass argument to Limelight command
|
||||||
|
redir => msg
|
||||||
Limelight 0.5
|
Limelight 0.5
|
||||||
|
redir END
|
||||||
AssertOff
|
AssertOff
|
||||||
|
Assert msg !~ 'g:limelight_conceal_', 'Invalid message: '.msg
|
||||||
|
|
||||||
Execute (TODO: Color interpolation):
|
Execute (TODO: Color interpolation):
|
||||||
Assert 0, 'TODO'
|
Assert 0, 'TODO'
|
||||||
@@ -123,5 +131,6 @@ Execute (TODO: Color interpolation):
|
|||||||
Execute (Cleanup):
|
Execute (Cleanup):
|
||||||
delc AssertOn
|
delc AssertOn
|
||||||
delc AssertOff
|
delc AssertOff
|
||||||
|
unlet! msg
|
||||||
Restore
|
Restore
|
||||||
execute 'colo '.g:colors_name
|
execute 'colo '.g:colors_name
|
||||||
|
|||||||
Reference in New Issue
Block a user