forked from VimPlug/emmet-vim
Add tests for sass
This commit is contained in:
82
unittest.vim
82
unittest.vim
@@ -802,5 +802,87 @@ finish
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'type': 'sass',
|
||||||
|
'categories': [
|
||||||
|
{
|
||||||
|
'name': 'expand abbreviation',
|
||||||
|
'tests': [
|
||||||
|
{
|
||||||
|
'query': "@i",
|
||||||
|
'result': "@import url()",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "fs:n",
|
||||||
|
'result': "font-style:normal",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "fl:l|fc",
|
||||||
|
'result': "float: left",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "bg+$$$$",
|
||||||
|
'result': "background:#FFF url($$$$) 0 0 no-repeat",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "bg+!$$$$",
|
||||||
|
'result': "background:#FFF url($$$$) 0 0 no-repeat !important",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "m$$$$",
|
||||||
|
'result': "margin:$$$$",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "m0.1p$$$$",
|
||||||
|
'result': "margin:0.1%",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "m1.0$$$$",
|
||||||
|
'result': "margin:1.0em",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "m2$$$$",
|
||||||
|
'result': "margin:2px",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "bdrs10$$$$",
|
||||||
|
'result': "border-radius:10px",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "-bdrs20$$$$",
|
||||||
|
'result': "-webkit-border-radius:20px\n-moz-border-radius:20px\nborder-radius:20px",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "lg(top,#fff,#000)$$$$",
|
||||||
|
'result': "background-image:-webkit-gradient(top, 0 0, 0 100, from(#fff), to(#000))\nbackground-image:-webkit-linear-gradient(#fff, #000)\nbackground-image:-moz-linear-gradient(#fff, #000)\nbackground-image:-o-linear-gradient(#fff, #000)\nbackground-image:linear-gradient(#fff, #000)\n",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "m10-5-0$$$$",
|
||||||
|
'result': "margin:10px 5px 0px",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "m-10--5$$$$",
|
||||||
|
'result': "margin:-10px -5px",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "m10-auto$$$$",
|
||||||
|
'result': "margin:10px auto",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "w100p$$$$",
|
||||||
|
'result': "width:100%",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "h50e$$$$",
|
||||||
|
'result': "height:50em",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'query': "(bg+)+c$$$$",
|
||||||
|
'result': "background:#FFF url($$$$) 0 0 no-repeat\ncolor:#000",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
]
|
]
|
||||||
" vim:set et:
|
" vim:set et:
|
||||||
|
|||||||
Reference in New Issue
Block a user