-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for comments around statements
A few of these cases are currently broken on Dart Sass.
- Loading branch information
Showing
17 changed files
with
1,495 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<===> before_query/loud/input.scss | ||
@media /**/ screen {} | ||
|
||
<===> before_query/loud/output.css | ||
|
||
<===> | ||
================================================================================ | ||
<===> before_query/silent/input.scss | ||
@media // | ||
screen {} | ||
|
||
<===> before_query/silent/output.css | ||
|
||
<===> | ||
================================================================================ | ||
<===> after_query/loud/input.scss | ||
@media screen /**/ {} | ||
|
||
<===> after_query/loud/output.css | ||
|
||
<===> | ||
================================================================================ | ||
<===> after_query/silent/input.scss | ||
@media screen // | ||
{} | ||
|
||
<===> after_query/silent/output.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<===> before_arg/loud/input.scss | ||
@-moz-document /**/ url-prefix(a) {} | ||
|
||
<===> before_arg/loud/output.css | ||
@-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. | ||
|
||
For details, see https://sass-lang.com/d/moz-document. | ||
, | ||
1 | @-moz-document /**/ url-prefix(a) {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
' | ||
|
||
<===> | ||
================================================================================ | ||
<===> before_arg/silent/input.scss | ||
@-moz-document // | ||
url-prefix(a) {} | ||
|
||
<===> before_arg/silent/output.css | ||
@-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. | ||
|
||
For details, see https://sass-lang.com/d/moz-document. | ||
, | ||
1 | / @-moz-document // | ||
2 | \ url-prefix(a) {} | ||
' | ||
|
||
<===> | ||
================================================================================ | ||
<===> after_arg/loud/input.scss | ||
@-moz-document url-prefix(a) /**/ {} | ||
|
||
<===> after_arg/loud/output.css | ||
@-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. | ||
|
||
For details, see https://sass-lang.com/d/moz-document. | ||
, | ||
1 | @-moz-document url-prefix(a) /**/ {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
' | ||
|
||
<===> | ||
================================================================================ | ||
<===> after_arg/silent/input.scss | ||
@-moz-document url-prefix(a) // | ||
{} | ||
|
||
<===> after_arg/silent/output.css | ||
@-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. | ||
|
||
For details, see https://sass-lang.com/d/moz-document. | ||
, | ||
1 | / @-moz-document url-prefix(a) // | ||
2 | \ {} | ||
' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<===> comment/after_selector/loud/input.scss | ||
a /**/ {} | ||
|
||
<===> comment/after_selector/loud/output.css | ||
|
||
<===> | ||
================================================================================ | ||
<===> comment/after_selector/silent/input.scss | ||
a // | ||
{} | ||
|
||
<===> comment/after_selector/silent/output.css | ||
|
||
<===> | ||
================================================================================ | ||
<===> declaration/comment/before_colon/loud/input.scss | ||
a {b /**/ : c} | ||
|
||
<===> declaration/comment/before_colon/loud/output.css | ||
a { | ||
b: c; | ||
} | ||
|
||
<===> | ||
================================================================================ | ||
<===> declaration/comment/before_colon/silent/input.scss | ||
a {b // | ||
: c} | ||
|
||
<===> declaration/comment/before_colon/silent/output.css | ||
a { | ||
b: c; | ||
} | ||
|
||
<===> | ||
================================================================================ | ||
<===> declaration/comment/after_colon/loud/input.scss | ||
a {b: /**/ c} | ||
|
||
<===> declaration/comment/after_colon/loud/output.css | ||
a { | ||
b: c; | ||
} | ||
|
||
<===> | ||
================================================================================ | ||
<===> declaration/comment/after_colon/silent/input.scss | ||
a {b: // | ||
c} | ||
|
||
<===> declaration/comment/after_colon/silent/output.css | ||
a { | ||
b: c; | ||
} | ||
|
||
<===> | ||
================================================================================ | ||
<===> declaration/comment/after_value/loud/input.scss | ||
a {b: c /**/} | ||
|
||
<===> declaration/comment/after_value/loud/output.css | ||
a { | ||
b: c; | ||
} | ||
|
||
<===> | ||
================================================================================ | ||
<===> declaration/comment/after_value/silent/input.scss | ||
a {b: c // | ||
} | ||
|
||
<===> declaration/comment/after_value/silent/output.css | ||
a { | ||
b: c; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<===> before_query/loud/input.scss | ||
@supports /**/ (a: b) {} | ||
|
||
<===> before_query/loud/output.css | ||
|
||
<===> | ||
================================================================================ | ||
<===> before_query/silent/input.scss | ||
@supports // | ||
(a: b) {} | ||
|
||
<===> before_query/silent/output.css | ||
|
||
<===> | ||
================================================================================ | ||
<===> after_query/loud/input.scss | ||
@supports (a: b) /**/ {} | ||
|
||
<===> after_query/loud/output.css | ||
|
||
<===> | ||
================================================================================ | ||
<===> after_query/silent/input.scss | ||
@supports (a: b) // | ||
{} | ||
|
||
<===> after_query/silent/output.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<===> no_children/before_value/loud/input.scss | ||
@a /**/ b | ||
|
||
<===> no_children/before_value/loud/output.css | ||
@a b; | ||
|
||
<===> | ||
================================================================================ | ||
<===> no_children/before_value/silent/input.scss | ||
@a // | ||
b | ||
|
||
<===> no_children/before_value/silent/output.css | ||
@a b; | ||
|
||
<===> | ||
================================================================================ | ||
<===> no_children/after_value/loud/options.yml | ||
:todo: | ||
- sass/dart-sass#2263 | ||
|
||
<===> no_children/after_value/loud/input.scss | ||
@a b /**/ | ||
|
||
<===> no_children/after_value/loud/output.css | ||
@a b; | ||
|
||
<===> | ||
================================================================================ | ||
<===> no_children/after_value/silent/options.yml | ||
:todo: | ||
- sass/dart-sass#2263 | ||
|
||
<===> no_children/after_value/silent/input.scss | ||
@a b // | ||
|
||
<===> no_children/after_value/silent/output.css | ||
@a b; | ||
|
||
<===> | ||
================================================================================ | ||
<===> no_children/no_value/loud/input.scss | ||
@a /**/ | ||
|
||
<===> no_children/no_value/loud/output.css | ||
@a; | ||
|
||
<===> | ||
================================================================================ | ||
<===> no_children/no_value/silent/input.scss | ||
@a // | ||
|
||
<===> no_children/no_value/silent/output.css | ||
@a; | ||
|
||
<===> | ||
================================================================================ | ||
<===> children/before_value/loud/input.scss | ||
@a /**/ b {} | ||
|
||
<===> children/before_value/loud/output.css | ||
@a b {} | ||
|
||
<===> | ||
================================================================================ | ||
<===> children/before_value/silent/input.scss | ||
@a // | ||
b {} | ||
|
||
<===> children/before_value/silent/output.css | ||
@a b {} | ||
|
||
<===> | ||
================================================================================ | ||
<===> children/after_value/loud/options.yml | ||
:todo: | ||
- sass/dart-sass#2263 | ||
|
||
<===> children/after_value/loud/input.scss | ||
@a b /**/ {} | ||
|
||
<===> children/after_value/loud/output.css | ||
@a b {}; | ||
|
||
<===> | ||
================================================================================ | ||
<===> children/after_value/silent/options.yml | ||
:todo: | ||
- sass/dart-sass#2263 | ||
|
||
<===> children/after_value/silent/input.scss | ||
@a b // | ||
{} | ||
|
||
<===> children/after_value/silent/output.css | ||
@a b {}; | ||
|
||
<===> | ||
================================================================================ | ||
<===> children/no_value/loud/input.scss | ||
@a /**/ {} | ||
|
||
<===> children/no_value/loud/output.css | ||
@a {} | ||
|
||
<===> | ||
================================================================================ | ||
<===> children/no_value/silent/input.scss | ||
@a // | ||
{} | ||
|
||
<===> children/no_value/silent/output.css | ||
@a {} |
Oops, something went wrong.