From cb869edec412bf4798c7b3622e596cb549d0bd02 Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 12 Aug 2013 22:27:13 +0900 Subject: [PATCH] Add test for #140 --- unittest.vim | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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': "
", + }, + ], + }, ], }, {