test for single hash to calc and url
This commit is contained in:
parent
617a421612
commit
ff52e56600
@ -64,6 +64,11 @@ test!(
|
|||||||
"a {\n color: calc('a');\n}\n",
|
"a {\n color: calc('a');\n}\n",
|
||||||
"a {\n color: calc(\"a\");\n}\n"
|
"a {\n color: calc(\"a\");\n}\n"
|
||||||
);
|
);
|
||||||
|
test!(
|
||||||
|
calc_hash_no_interpolation,
|
||||||
|
"a {\n color: calc(#);\n}\n",
|
||||||
|
"a {\n color: calc(#);\n}\n"
|
||||||
|
);
|
||||||
test!(
|
test!(
|
||||||
element_whitespace,
|
element_whitespace,
|
||||||
"a {\n color: element( 1 );\n}\n",
|
"a {\n color: element( 1 );\n}\n",
|
||||||
|
@ -142,6 +142,11 @@ test!(
|
|||||||
"a {\n color: -webkit-url(https://google.com);\n}\n",
|
"a {\n color: -webkit-url(https://google.com);\n}\n",
|
||||||
"a {\n color: url(https://google.com);\n}\n"
|
"a {\n color: url(https://google.com);\n}\n"
|
||||||
);
|
);
|
||||||
|
test!(
|
||||||
|
url_hash_no_interpolation,
|
||||||
|
"a {\n color: url(#);\n}\n",
|
||||||
|
"a {\n color: url(#);\n}\n"
|
||||||
|
);
|
||||||
error!(
|
error!(
|
||||||
url_nothing_after_forward_slash_in_interpolation,
|
url_nothing_after_forward_slash_in_interpolation,
|
||||||
"a { color: url(#{/", "Error: Expected expression."
|
"a { color: url(#{/", "Error: Expected expression."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user