Various tests
This commit is contained in:
parent
776e6444e6
commit
404c7fb66a
@ -36,6 +36,11 @@ test!(
|
||||
"a {\n color: rgb(255, 0, 0, 255);\n}\n",
|
||||
"a {\n color: red;\n}\n"
|
||||
);
|
||||
test!(
|
||||
rgb_negative,
|
||||
"a {\n color: rgb(-1, 1, 1);\n}\n",
|
||||
"a {\n color: #000101;\n}\n"
|
||||
);
|
||||
test!(
|
||||
rgb_binop,
|
||||
"a {\n color: rgb(1, 2, 1+2);\n}\n",
|
||||
|
@ -7,6 +7,10 @@ test!(
|
||||
ident_starts_with_hyphen,
|
||||
"a {\n foo: -webkit-bar-baz;\n}\n"
|
||||
);
|
||||
test!(
|
||||
ident_starts_with_double_hyphen,
|
||||
"a {\n foo: --webkit-bar-baz;\n}\n"
|
||||
);
|
||||
test!(ident_with_num, "el1 {\n a: b;\n}\n");
|
||||
test!(keyword_important, "a {\n height: 1 !important;\n}\n");
|
||||
test!(
|
||||
@ -28,3 +32,8 @@ test!(
|
||||
"a {\n color: green;\n}\n"
|
||||
);
|
||||
test!(utf8_input, "a {\n color: 🦆;\n}\n");
|
||||
// test!(
|
||||
// ends_with_several_semicolons,
|
||||
// "a {\n color: red;;\n}\n",
|
||||
// "a {\n color: red;\n}\n"
|
||||
// );
|
||||
|
@ -266,3 +266,8 @@ test!(
|
||||
"#foo #bar,,\n,#baz #boom, {a: b}",
|
||||
"#foo #bar,\n#baz #boom {\n a: b;\n}\n"
|
||||
);
|
||||
// test!(
|
||||
// trailing_comma_children,
|
||||
// "a,, {\n b {\n color: /**/red;\n }\n}\n",
|
||||
// "a b {\n color: red;\n}\n"
|
||||
// );
|
||||
|
Loading…
x
Reference in New Issue
Block a user