diff --git a/unittest.vim b/unittest.vim index 3e0c6bf..b03c049 100644 --- a/unittest.vim +++ b/unittest.vim @@ -142,8 +142,8 @@ function! s:do_tests(...) try if exists('g:user_emmet_settings') let s:old_user_emmet_settings = g:user_emmet_settings - let g:user_emmet_settings = { 'indentation': "\t" } endif + let g:user_emmet_settings = { 'indentation': "\t" } let oldmore = &more call s:reload(fnamemodify(s:sfile, ':h')) let &more = 0 @@ -153,7 +153,7 @@ function! s:do_tests(...) echohl ErrorMsg | echomsg v:exception | echohl None finally let &more=oldmore - if exists('g:user_emmet_settings') + if exists('s:old_user_emmet_settings') let g:user_emmet_settings = s:old_user_emmet_settings endif endtry @@ -556,6 +556,15 @@ finish }, ], }, + { + 'name': 'contains dash in attributes', + 'tests': [ + { + 'query': "div[foo-bar=\"baz\"", + 'result': "
", + }, + ], + }, ], }, {