Skip to content

Commit

Permalink
Update tests to match Dart Sass
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Dec 17, 2022
1 parent e81663f commit d3f19c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
4 changes: 1 addition & 3 deletions spec/core_functions/color/complement.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,6 @@ Error: argument `$color` of `complement($color)` must be a color
<===> error/null_space/non_legacy/options.yml
:ignore_for:
- libsass
:todo:
- dart-sass

<===> error/null_space/non_legacy/input.scss
a {b: complement(oklch(0.63 0.26 29.2))}
Expand All @@ -222,7 +220,7 @@ Error: $space: null is not a string.
a {b: complement(red, xyz)}

<===> error/space/non_polar_angle/error
Error: Color color(xyz 0.4123907993 0.2126390059 0.0193308187) doesn't have a channel named "hue".
Error: $space: Color space xyz doesn't have a hue channel.
,
1 | a {b: complement(red, xyz)}
| ^^^^^^^^^^^^^^^^^^^^
Expand Down
12 changes: 7 additions & 5 deletions spec/core_functions/color/mix/error.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,12 @@ Error: $color1: To use color.mix() with non-legacy color lch(20% -20 0deg), you
<===> null_method/non_legacy/color2/options.yml
:ignore_for:
- libsass
:todo:
- dart-sass

<===> null_method/non_legacy/color2/input.scss
a {b: mix(red, lch(20% -20 0))}

<===> null_method/non_legacy/color2/error
Error: $color2: To use color.mix() with non-legacy color lch(20% -20 0), you must provide a $method.
Error: $color2: To use color.mix() with non-legacy color lch(20% -20 0deg), you must provide a $method.
,
1 | a {b: mix(red, lch(20% -20 0))}
| ^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -279,13 +277,17 @@ a {b: mix(red, blue, $method: oklab)}
<===> rectangular_space_with_method/options.yml
:ignore_for:
- libsass
:todo:
- dart-sass

<===> rectangular_space_with_method/input.scss
a {b: mix(red, blue, $method: srgb longer hue)}

<===> rectangular_space_with_method/error
Error: $method: Hue interpolation method "HueInterpolationMethod.longer hue" may not be set for rectangular color space srgb.
,
1 | a {b: mix(red, blue, $method: srgb longer hue)}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 1:7 root stylesheet

<===>
================================================================================
Expand Down
4 changes: 0 additions & 4 deletions spec/core_functions/color/mix/hue_interpolation.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

<===>
================================================================================
<===> longer/options.yml
:todo:
- dart-sass

<===> longer/input.scss
a {b: mix(red, green, $method: hsl longer hue)}

Expand Down

0 comments on commit d3f19c0

Please sign in to comment.