2020-05-20 20:13:53 -04:00
|
|
|
#[macro_use]
|
|
|
|
mod macros;
|
|
|
|
|
|
|
|
test!(
|
|
|
|
basic_unknown_at_rule,
|
|
|
|
"@foo {\n a {\n color: red;\n }\n}\n"
|
|
|
|
);
|
|
|
|
test!(unknown_at_rule_no_selector, "@foo {\n color: red;\n}\n");
|
|
|
|
test!(unknown_at_rule_no_body, "@foo;\n");
|
|
|
|
test!(unknown_at_rule_no_body_eof, "@foo", "@foo;\n");
|
|
|
|
test!(
|
|
|
|
unknown_at_rule_interpolated_eof_no_body,
|
|
|
|
"@#{()if(0,0<0,0)}",
|
|
|
|
"@false;\n"
|
|
|
|
);
|
2020-05-24 13:50:45 -04:00
|
|
|
test!(nothing_after_hash, "@foo #", "@foo #;\n");
|
2020-07-10 22:24:03 -04:00
|
|
|
test!(
|
|
|
|
style_following,
|
|
|
|
"@foo (a: b) {
|
|
|
|
a {
|
|
|
|
color: red;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: green;
|
|
|
|
}",
|
|
|
|
"@foo (a: b) {\n a {\n color: red;\n }\n}\na {\n color: green;\n}\n"
|
|
|
|
);
|
2020-08-07 11:39:14 -04:00
|
|
|
test!(contains_multiline_comment, "@foo /**/;\n", "@foo;\n");
|