add new, now passing tests
This commit is contained in:
parent
053dac2ecb
commit
50e6550380
@ -116,3 +116,8 @@ test!(
|
|||||||
}",
|
}",
|
||||||
"a {\n color: get-function(\"-test\");\n color: get-function(\"-test\");\n}\n"
|
"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"
|
||||||
|
);
|
||||||
|
@ -135,6 +135,11 @@ test!(
|
|||||||
@else if not comparable($p, 0) {}",
|
@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!(
|
error!(
|
||||||
nothing_after_escape,
|
nothing_after_escape,
|
||||||
"@if \\", "Error: Expected expression."
|
"@if \\", "Error: Expected expression."
|
||||||
|
@ -124,6 +124,11 @@ test!(
|
|||||||
"a {\n webkit: {\n webkit: {\n color: red;\n }\n }\n}\n",
|
"a {\n webkit: {\n webkit: {\n color: red;\n }\n }\n}\n",
|
||||||
"a {\n webkit-webkit-color: red;\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!(
|
test!(
|
||||||
no_space_between_colon,
|
no_space_between_colon,
|
||||||
"a {\n color:red;\n}\n",
|
"a {\n color:red;\n}\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user