mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 10:44:24 +08:00
add some tests.
This commit is contained in:
52
unittest.vim
52
unittest.vim
@@ -645,6 +645,32 @@ finish
|
||||
'type': "haml",
|
||||
'result': "%div.content Hello!\n",
|
||||
},
|
||||
{
|
||||
'name': "join tag",
|
||||
'query': "",
|
||||
'type': "haml",
|
||||
'result': "",
|
||||
'skip': 1,
|
||||
},
|
||||
{
|
||||
'name': "split tag",
|
||||
'query': "",
|
||||
'type': "haml",
|
||||
'result': "",
|
||||
'skip': 1,
|
||||
},
|
||||
{
|
||||
'name': "comment tag",
|
||||
'query': "%a{ :href => \"http://www.google.com\"$$$$\\<c-y>/$$$$ } hello",
|
||||
'type': "haml",
|
||||
'result': "-# %a{ :href => \"http://www.google.com\" } hello",
|
||||
},
|
||||
{
|
||||
'name': "uncomment tag",
|
||||
'query': "-# %a{ :href => \"http://www.google.com\"$$$$\\<c-y>/$$$$ } hello",
|
||||
'type': "haml",
|
||||
'result': "%a{ :href => \"http://www.google.com\" } hello",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -674,6 +700,32 @@ finish
|
||||
'type': "slim",
|
||||
'result': "div class=\"content\"\n | Hello!\n",
|
||||
},
|
||||
{
|
||||
'name': "join tag",
|
||||
'query': "",
|
||||
'type': "slim",
|
||||
'result': "",
|
||||
'skip': 1,
|
||||
},
|
||||
{
|
||||
'name': "split tag",
|
||||
'query': "",
|
||||
'type': "slim",
|
||||
'result': "",
|
||||
'skip': 1,
|
||||
},
|
||||
{
|
||||
'name': "comment tag",
|
||||
'query': "a href=\"http://www.google.com\"$$$$\\<c-y>/$$$$\n | hello",
|
||||
'type': "slim",
|
||||
'result': "/a href=\"http://www.google.com\"\n | hello",
|
||||
},
|
||||
{
|
||||
'name': "uncomment tag",
|
||||
'query': "/a href=\"http://www.google.com\"$$$$\\<c-y>/$$$$\n | hello",
|
||||
'type': "slim",
|
||||
'result': "a href=\"http://www.google.com\"\n | hello",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user