add new, now passing tests

This commit is contained in:
ConnorSkees 2020-06-16 20:32:26 -04:00
parent 053dac2ecb
commit 50e6550380
3 changed files with 15 additions and 0 deletions

View File

@ -116,3 +116,8 @@ test!(
}",
"a {\n color: get-function(\"-test\");\n color: get-function(\"-test\");\n}\n"
);
test!(
nested_call_and_get_function,
"a {\n color: call(call(get-function(get-function), darken), red, 10%);\n}\n",
"a {\n color: #cc0000;\n}\n"
);

View File

@ -135,6 +135,11 @@ test!(
@else if not comparable($p, 0) {}",
""
);
test!(
at_rule_inside_ruleset,
"@mixin foo {\n color: red;\n}\n\n@if true {\n a {\n @include foo;\n }\n}\n",
"a {\n color: red;\n}\n"
);
error!(
nothing_after_escape,
"@if \\", "Error: Expected expression."

View File

@ -124,6 +124,11 @@ test!(
"a {\n webkit: {\n webkit: {\n color: red;\n }\n }\n}\n",
"a {\n webkit-webkit-color: red;\n}\n"
);
test!(
no_space_after_colon_before_nested_style,
"a {\n foo:{\n bar: baz\n }\n}\n",
"a {\n foo-bar: baz;\n}\n"
);
test!(
no_space_between_colon,
"a {\n color:red;\n}\n",