mirror of
https://github.com/junegunn/limelight.vim.git
synced 2025-11-08 11:03:48 -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
|
||||
colo default
|
||||
let &t_Co = 256
|
||||
|
||||
" Cannot enable it without g:limelight_conceal_ctermfg
|
||||
Limelight
|
||||
AssertOff
|
||||
|
||||
let g:limelight_conceal_ctermfg = 240
|
||||
Limelight
|
||||
AssertOn
|
||||
@@ -114,8 +119,11 @@ Execute (Unsupported. but g:limelight_conceal_???fg defined):
|
||||
endif
|
||||
|
||||
" However, you're still not allowed to pass argument to Limelight command
|
||||
redir => msg
|
||||
Limelight 0.5
|
||||
redir END
|
||||
AssertOff
|
||||
Assert msg !~ 'g:limelight_conceal_', 'Invalid message: '.msg
|
||||
|
||||
Execute (TODO: Color interpolation):
|
||||
Assert 0, 'TODO'
|
||||
@@ -123,5 +131,6 @@ Execute (TODO: Color interpolation):
|
||||
Execute (Cleanup):
|
||||
delc AssertOn
|
||||
delc AssertOff
|
||||
unlet! msg
|
||||
Restore
|
||||
execute 'colo '.g:colors_name
|
||||
|
||||
Reference in New Issue
Block a user