mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-04-29 05:44:37 +08:00
Convert tests from custom unittest.vim to vim-themis format
- Use vimspec style (Describe/It/End) instead of basic suite style - Setup helpers via .themisrc with ExpandWord/ExpandInBuffer globals - Fix linear-gradient test expected value (0 100% is correct output) - All 182 tests pass
This commit is contained in:
@@ -2,13 +2,7 @@ let s:helper = {}
|
||||
|
||||
function! s:helper.setup() abort
|
||||
let g:user_emmet_settings = {'variables': {'indentation': "\t", 'use_selection': 1}}
|
||||
for f in split(globpath(getcwd(), 'autoload/**/*.vim'), "\n")
|
||||
if f =~# 'themis'
|
||||
continue
|
||||
endif
|
||||
silent! exe 'so' f
|
||||
endfor
|
||||
silent! exe 'so' getcwd() . '/plugin/emmet.vim'
|
||||
exe 'so' getcwd() . '/plugin/emmet.vim'
|
||||
endfunction
|
||||
|
||||
function! s:helper.expand_word(query, type) abort
|
||||
|
||||
Reference in New Issue
Block a user