mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-08 19:44:47 +08:00
add test for splitJoinTag for haml & slim.
This commit is contained in:
22
unittest.vim
22
unittest.vim
@@ -83,7 +83,7 @@ function! s:testExpandAbbr()
|
|||||||
let key = "\<c-y>,"
|
let key = "\<c-y>,"
|
||||||
endif
|
endif
|
||||||
silent! let query = substitute(query, '\$\$\$\$.*\$\$\$\$', '$$$$', '')
|
silent! let query = substitute(query, '\$\$\$\$.*\$\$\$\$', '$$$$', '')
|
||||||
silent! call setline(1, query)
|
silent! call setline(1, split(query, "\n"))
|
||||||
let cmd = "normal gg0/\\$\\$\\$\\$\ri\<del>\<del>\<del>\<del>".key
|
let cmd = "normal gg0/\\$\\$\\$\\$\ri\<del>\<del>\<del>\<del>".key
|
||||||
if stridx(result, '$$$$') != -1
|
if stridx(result, '$$$$') != -1
|
||||||
let cmd .= '$$$$'
|
let cmd .= '$$$$'
|
||||||
@@ -647,17 +647,15 @@ finish
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': "join tag",
|
'name': "join tag",
|
||||||
'query': "",
|
'query': "%a foo\n bar$$$$\\<c-y>j$$$$",
|
||||||
'type': "haml",
|
'type': "haml",
|
||||||
'result': "",
|
'result': "%a ",
|
||||||
'skip': 1,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': "split tag",
|
'name': "split tag",
|
||||||
'query': "",
|
'query': "$$$$\\<c-y>j$$$$%a ",
|
||||||
'type': "haml",
|
'type': "haml",
|
||||||
'result': "",
|
'result': "%a $$$$",
|
||||||
'skip': 1,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': "comment tag",
|
'name': "comment tag",
|
||||||
@@ -702,17 +700,15 @@ finish
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': "join tag",
|
'name': "join tag",
|
||||||
'query': "",
|
'query': "a\n | foo$$$$\\<c-y>j$$$$",
|
||||||
'type': "slim",
|
'type': "slim",
|
||||||
'result': "",
|
'result': "a",
|
||||||
'skip': 1,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': "split tag",
|
'name': "split tag",
|
||||||
'query': "",
|
'query': "a$$$$\\<c-y>j$$$$",
|
||||||
'type': "slim",
|
'type': "slim",
|
||||||
'result': "",
|
'result': "a\n | $$$$",
|
||||||
'skip': 1,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': "comment tag",
|
'name': "comment tag",
|
||||||
|
|||||||
Reference in New Issue
Block a user