From 402d7bf8e6ea7170a78b3647ac872290f8dd8798 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Tue, 23 Jun 2020 02:43:28 -0400 Subject: [PATCH] unignore passing tests --- src/builtin/meta.rs | 2 +- tests/color.rs | 6 +----- tests/error.rs | 1 - tests/meta.rs | 2 -- tests/selectors.rs | 1 - 5 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/builtin/meta.rs b/src/builtin/meta.rs index 97d8274..6868de7 100644 --- a/src/builtin/meta.rs +++ b/src/builtin/meta.rs @@ -33,7 +33,7 @@ fn feature_exists(mut args: CallArgs, parser: &mut Parser<'_>) -> SassResult Value::True, // the @extend rule will affect selectors nested in pseudo-classes // like :not() - "extend-selector-pseudoclass" => Value::False, + "extend-selector-pseudoclass" => Value::True, // Full support for unit arithmetic using units defined in the // [Values and Units Level 3][] spec. "units-level-3" => Value::True, diff --git a/tests/color.rs b/tests/color.rs index d5b5ad0..d5865d1 100644 --- a/tests/color.rs +++ b/tests/color.rs @@ -283,11 +283,7 @@ test!( "a {\n color: black;\n}\n" ); test!(invert_number, "a {\n color: invert(10%);\n}\n"); -test!( - #[ignore] - invert_number_casing, - "a {\n color: iNveRt(10%);\n}\n" -); +test!(invert_number_casing, "a {\n color: iNveRt(10%);\n}\n"); test!( invert_weight_percent, "a {\n color: invert(white, 20%);\n}\n", diff --git a/tests/error.rs b/tests/error.rs index c448f94..d8571c5 100644 --- a/tests/error.rs +++ b/tests/error.rs @@ -134,7 +134,6 @@ error!( ); error!(toplevel_at, "@", "Error: Expected identifier."); error!( - #[ignore = "this panics until we can return a result in selector parsing"] toplevel_ampersand, "& {}", "Error: Top-level selectors may not contain the parent selector \"&\"." ); diff --git a/tests/meta.rs b/tests/meta.rs index bda5121..6690635 100644 --- a/tests/meta.rs +++ b/tests/meta.rs @@ -63,9 +63,7 @@ test!( "a {\n color: feature-exists(global-variable-shadowing)\n}\n", "a {\n color: true;\n}\n" ); -// Unignore as more features are added test!( - #[ignore] feature_exists_extend_selector_pseudoclass, "a {\n color: feature-exists(extend-selector-pseudoclass)\n}\n", "a {\n color: true;\n}\n" diff --git a/tests/selectors.rs b/tests/selectors.rs index 111870b..cdf8676 100644 --- a/tests/selectors.rs +++ b/tests/selectors.rs @@ -667,7 +667,6 @@ error!( ":nth-child(f) {\n color: &;\n}\n", "Error: Expected \"n\"." ); error!( - #[ignore = "we read until closing paren, giving a different error message"] a_n_plus_b_n_nothing_after_open_paren, ":nth-child({\n color: &;\n}\n", "Error: expected more input." );