Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update specs for consistent parse-time warnings #2032

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions spec/core_functions/meta/function_exists.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ a {
}

<===> same_module/through_import/warning
DEPRECATION WARNING on line 2, column 9 of input.scss:
Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

,
2 | @import "other";
| ^^^^^^^
'
input.scss 2:9 root stylesheet

<===>
================================================================================
Expand Down
5 changes: 3 additions & 2 deletions spec/core_functions/meta/get_function/same_module.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,15 @@ a {
}

<===> through_import/warning
DEPRECATION WARNING on line 2, column 9 of input.scss:
Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

,
2 | @import "other";
| ^^^^^^^
'
input.scss 2:9 root stylesheet

<===>
================================================================================
Expand Down
5 changes: 3 additions & 2 deletions spec/core_functions/meta/get_mixin/same_module.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ a {
}

<===> through_import/warning
DEPRECATION WARNING on line 2, column 9 of input.scss:
Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

,
2 | @import "other";
| ^^^^^^^
'
input.scss 2:9 root stylesheet

<===>
================================================================================
Expand Down
5 changes: 3 additions & 2 deletions spec/core_functions/meta/global_variable_exists.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ a {
}

<===> same_module/through_import/warning
DEPRECATION WARNING on line 2, column 9 of input.scss:
Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

,
2 | @import "other";
| ^^^^^^^
'
input.scss 2:9 root stylesheet

<===>
================================================================================
Expand Down
19 changes: 13 additions & 6 deletions spec/core_functions/meta/load_css/with.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,16 @@ b {
}

<===> through_import/direct/warning
DEPRECATION WARNING on line 1, column 9 of _loaded.scss:
Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

,
1 | @import "imported";
| ^^^^^^^^^^
'
_loaded.scss 1:9 load-css()
input.scss 2:1 root stylesheet

<===>
================================================================================
Expand All @@ -198,23 +200,28 @@ b {
}

<===> through_import/transitive/warning
DEPRECATION WARNING on line 1, column 9 of _loaded.scss:
Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

,
1 | @import "midstream";
| ^^^^^^^^^^^
'
_loaded.scss 1:9 load-css()
input.scss 2:1 root stylesheet

DEPRECATION WARNING on line 1, column 9 of _midstream.scss:
Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

,
1 | @import "upstream";
| ^^^^^^^^^^
'
_midstream.scss 1:9 @import
_loaded.scss 1:9 load-css()
input.scss 2:1 root stylesheet

<===>
================================================================================
Expand Down
5 changes: 3 additions & 2 deletions spec/core_functions/meta/mixin_exists.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ a {
}

<===> same_module/through_import/warning
DEPRECATION WARNING on line 2, column 9 of input.scss:
Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

,
2 | @import "other";
| ^^^^^^^
'
input.scss 2:9 root stylesheet

<===>
================================================================================
Expand Down
6 changes: 4 additions & 2 deletions spec/core_functions/meta/module_functions.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,16 @@ a {
}

<===> through_import/warning
DEPRECATION WARNING on line 1, column 9 of _used.scss:
Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

,
1 | @import "imported";
| ^^^^^^^^^^
'
_used.scss 1:9 @use
input.scss 3:1 root stylesheet

<===>
================================================================================
Expand Down
6 changes: 4 additions & 2 deletions spec/core_functions/meta/module_mixins.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,16 @@ a {
}

<===> through_import/warning
DEPRECATION WARNING on line 1, column 9 of _used.scss:
Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

,
1 | @import "imported";
| ^^^^^^^^^^
'
_used.scss 1:9 @use
input.scss 3:1 root stylesheet

<===>
================================================================================
Expand Down
6 changes: 4 additions & 2 deletions spec/core_functions/meta/module_variables.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,16 @@ a {
}

<===> through_import/warning
DEPRECATION WARNING on line 1, column 9 of _used.scss:
Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

,
1 | @import "imported";
| ^^^^^^^^^^
'
_used.scss 1:9 @use
input.scss 2:1 root stylesheet

<===>
================================================================================
Expand Down
5 changes: 3 additions & 2 deletions spec/core_functions/meta/variable_exists.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@ a {
}

<===> through_import/warning
DEPRECATION WARNING on line 2, column 9 of input.scss:
Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

,
2 | @import "other";
| ^^^^^^^
'
input.scss 2:9 root stylesheet

<===>
================================================================================
Expand Down
5 changes: 3 additions & 2 deletions spec/css/custom_properties/name_interpolation.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ a {
}

<===> import_nesting_use/warning
DEPRECATION WARNING on line 2, column 9 of input.scss:
Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

,
2 | @import 'foo';
| ^^^^^
'
input.scss 2:9 root stylesheet
5 changes: 3 additions & 2 deletions spec/css/font-face.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,15 @@ c {
}

<===> bubble/loaded/import/warning
DEPRECATION WARNING on line 2, column 11 of input.scss:
Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

,
2 | @import 'upstream';
| ^^^^^^^^^^
'
input.scss 2:11 root stylesheet

DEPRECATION WARNING: Sass's behavior for declarations that appear after nested
rules will be changing to match the behavior specified by CSS in an upcoming
Expand Down
20 changes: 12 additions & 8 deletions spec/css/moz_document/comment.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
@-moz-document url-prefix(a) {}

<===> before_arg/loud/warning
DEPRECATION WARNING on line 1, column 1 of input.scss:
@-moz-document is deprecated and support will be removed in Dart Sass 2.0.0.
DEPRECATION WARNING: @-moz-document is deprecated and support will be removed in Dart Sass 2.0.0.

For details, see https://sass-lang.com/d/moz-document.

,
1 | @-moz-document /**/ url-prefix(a) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 1:1 root stylesheet

<===>
================================================================================
Expand All @@ -24,14 +25,15 @@ For details, see https://sass-lang.com/d/moz-document.
@-moz-document url-prefix(a) {}

<===> before_arg/silent/warning
DEPRECATION WARNING on line 1, column 1 of input.scss:
@-moz-document is deprecated and support will be removed in Dart Sass 2.0.0.
DEPRECATION WARNING: @-moz-document is deprecated and support will be removed in Dart Sass 2.0.0.

For details, see https://sass-lang.com/d/moz-document.

,
1 | / @-moz-document //
2 | \ url-prefix(a) {}
'
input.scss 1:1 root stylesheet

<===>
================================================================================
Expand All @@ -42,14 +44,15 @@ For details, see https://sass-lang.com/d/moz-document.
@-moz-document url-prefix(a) {}

<===> after_arg/loud/warning
DEPRECATION WARNING on line 1, column 1 of input.scss:
@-moz-document is deprecated and support will be removed in Dart Sass 2.0.0.
DEPRECATION WARNING: @-moz-document is deprecated and support will be removed in Dart Sass 2.0.0.

For details, see https://sass-lang.com/d/moz-document.

,
1 | @-moz-document url-prefix(a) /**/ {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 1:1 root stylesheet

<===>
================================================================================
Expand All @@ -61,11 +64,12 @@ For details, see https://sass-lang.com/d/moz-document.
@-moz-document url-prefix(a) {}

<===> after_arg/silent/warning
DEPRECATION WARNING on line 1, column 1 of input.scss:
@-moz-document is deprecated and support will be removed in Dart Sass 2.0.0.
DEPRECATION WARNING: @-moz-document is deprecated and support will be removed in Dart Sass 2.0.0.

For details, see https://sass-lang.com/d/moz-document.

,
1 | / @-moz-document url-prefix(a) //
2 | \ {}
'
input.scss 1:1 root stylesheet
Loading
Loading