From f0185855c069a056aa55bf8ab90d140fcca02a65 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Mon, 3 Feb 2020 15:08:14 -0500 Subject: [PATCH] Add more feature-exists tests for unimplemented features --- tests/meta.rs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests/meta.rs b/tests/meta.rs index 6deb0bc..11d4e92 100644 --- a/tests/meta.rs +++ b/tests/meta.rs @@ -33,6 +33,32 @@ test!( "a {\n color: feature-exists(at-error)\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!( feature_exists_at_error_named_arg, "a {\n color: feature-exists($feature: at-error)\n}\n",