Add more feature-exists tests for unimplemented features

This commit is contained in:
ConnorSkees 2020-02-03 15:08:14 -05:00
parent ed316e6eb7
commit f0185855c0

View File

@ -33,6 +33,32 @@ test!(
"a {\n color: feature-exists(at-error)\n}\n", "a {\n color: feature-exists(at-error)\n}\n",
"a {\n color: true;\n}\n" "a {\n color: true;\n}\n"
); );
// Uncomment as more features are added
// test!(
// feature_exists_global_variable_shadowing,
// "a {\n color: feature-exists(global-variable-shadowing)\n}\n",
// "a {\n color: true;\n}\n"
// );
// test!(
// feature_exists_extend_selector_pseudoclass,
// "a {\n color: feature-exists(extend-selector-pseudoclass)\n}\n",
// "a {\n color: true;\n}\n"
// );
// test!(
// feature_exists_units_level_3,
// "a {\n color: feature-exists(units-level-3)\n}\n",
// "a {\n color: true;\n}\n"
// );
// test!(
// feature_exists_custom_property,
// "a {\n color: feature-exists(custom-property)\n}\n",
// "a {\n color: true;\n}\n"
// );
test!(
feature_exists_nonsense,
"a {\n color: feature-exists(foo)\n}\n",
"a {\n color: false;\n}\n"
);
test!( test!(
feature_exists_at_error_named_arg, feature_exists_at_error_named_arg,
"a {\n color: feature-exists($feature: at-error)\n}\n", "a {\n color: feature-exists($feature: at-error)\n}\n",