34 lines
801 B
Rust
34 lines
801 B
Rust
#[macro_use]
|
|
mod macros;
|
|
|
|
test!(
|
|
keyword_important_lowercase,
|
|
"a {\n height: !important;\n}\n",
|
|
"a {\n height: !important;\n}\n"
|
|
);
|
|
test!(
|
|
keyword_important_uppercase,
|
|
"a {\n height: !IMPORTANT;\n}\n",
|
|
"a {\n height: !important;\n}\n"
|
|
);
|
|
test!(
|
|
keyword_important_at_start_of_list,
|
|
"a {\n height: !important 1 2 3;\n}\n",
|
|
"a {\n height: !important 1 2 3;\n}\n"
|
|
);
|
|
test!(
|
|
keyword_important_at_end_of_list,
|
|
"a {\n height: 1 2 3 !important;\n}\n",
|
|
"a {\n height: 1 2 3 !important;\n}\n"
|
|
);
|
|
test!(
|
|
keyword_important_inside_list,
|
|
"a {\n color: 1 2 !important 3 4;\n}\n",
|
|
"a {\n color: 1 2 !important 3 4;\n}\n"
|
|
);
|
|
test!(
|
|
whitespace_after_exclamation,
|
|
"a {\n color: ! important;\n}\n",
|
|
"a {\n color: !important;\n}\n"
|
|
);
|