Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnw committed Dec 16, 2024
1 parent 2195c6b commit 592c784
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 50 deletions.
10 changes: 6 additions & 4 deletions spec/css/comment.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ should include their own tests for CR LF newlines.
<===>
================================================================================
<===> converts_newlines/scss/cr/input.scss
/* foo * bar */
/* foo
* bar */

<===> converts_newlines/scss/cr/output.css
/* foo
Expand All @@ -80,7 +81,8 @@ should include their own tests for CR LF newlines.
================================================================================
<===> converts_newlines/sass/cr/input.sass
/*
foo bar
foo
bar

<===> converts_newlines/sass/cr/output.css
/* foo
Expand Down Expand Up @@ -242,12 +244,12 @@ Error: expected more input.

<===>
================================================================================
<===> error/loud/multi_line/sass/input.sass
<===> loud/multi_line/sass/input.sass
a
b: c /* d
e */ f

<===> error/loud/multi_line/sass/output.css
<===> loud/multi_line/sass/output.css
a {
b: c f;
}
Expand Down
4 changes: 2 additions & 2 deletions spec/css/custom_properties/value_interpolation.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,14 @@ a {

<===>
================================================================================
<===> error/sass/linebreak-interpolation/input.sass
<===> sass/linebreak-interpolation/input.sass
a
--b: #{1
+
2}


<===> error/sass/linebreak-interpolation/output.css
<===> sass/linebreak-interpolation/output.css
a {
--b: 3;
}
4 changes: 2 additions & 2 deletions spec/css/unknown_directive/whitespace.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ WARNING: This selector doesn't have any properties and won't be rendered.

<===>
================================================================================
<===> error/children/before_value/sass/input.sass
<===> children/before_value/sass/input.sass
@a
b
c: d

<===> error/children/before_value/sass/output.css
<===> children/before_value/sass/output.css
@a {
b {
c: d;
Expand Down
21 changes: 8 additions & 13 deletions spec/directives/each.hrx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<===> sass/inline/input.sass

@each $a in b, c
.#{$a}
d: $a
Expand All @@ -16,7 +15,6 @@
<===>
================================================================================
<===> sass/multiline/after-each/input.sass

@each
$a in b, c
.#{$a}
Expand All @@ -33,14 +31,13 @@

<===>
================================================================================
<===> error/sass/multiline/after-variable/input.sass

<===> sass/multiline/after-variable/input.sass
@each $a
in b, c
.#{$a}
d: $a

<===> error/sass/multiline/after-variable/output.css
<===> sass/multiline/after-variable/output.css
.b {
d: b;
}
Expand All @@ -51,14 +48,13 @@

<===>
================================================================================
<===> error/sass/multiline/after-in/input.sass

<===> sass/multiline/after-in/input.sass
@each $a in
b, c
.#{$a}
d: $a

<===> error/sass/multiline/after-in/output.css
<===> sass/multiline/after-in/output.css
.b {
d: b;
}
Expand All @@ -69,28 +65,27 @@

<===>
================================================================================
<===> error/sass/multiline/in-expression/input.sass
<===> sass/multiline/in-expression/input.sass

@each $a in b,
c
.#{$a}
d: $a

<===> error/sass/multiline/in-expression/output.css
<===> sass/multiline/in-expression/output.css
c .b {
d: b;
}

<===>
================================================================================
<===> error/sass/multiline/in-wrapped-expression/input.sass

<===> sass/multiline/in-wrapped-expression/input.sass
@each $a in (b,
c)
.#{$a}
d: $a

<===> error/sass/multiline/in-wrapped-expression/output.css
<===> sass/multiline/in-wrapped-expression/output.css
.b {
d: b;
}
Expand Down
4 changes: 2 additions & 2 deletions spec/directives/for/comment.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@

<===>
================================================================================
<===> error/before_through/silent/sass/input.sass
<===> before_through/silent/sass/input.sass
@for $i from 1 //
through 10

<===> error/before_through/silent/sass/output.css
<===> before_through/silent/sass/output.css

<===>
================================================================================
Expand Down
8 changes: 4 additions & 4 deletions spec/directives/if/sass.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ a {

<===>
================================================================================
<===> error/if-statement-wrapped-multiline/input.sass
<===> if-statement-wrapped-multiline/input.sass
$a: b
$c: d
a
Expand All @@ -47,22 +47,22 @@ a
)
e: f

<===> error/if-statement-wrapped-multiline/output.css
<===> if-statement-wrapped-multiline/output.css
a {
e: f;
}

<===>
================================================================================
<===> error/if-statement-unwrapped-multiline/input.sass
<===> if-statement-unwrapped-multiline/input.sass
$a: b
$c: d
a
@if
$a == b and
$c == d
e: f
<===> error/if-statement-unwrapped-multiline/output.css
<===> if-statement-unwrapped-multiline/output.css
a {
e: f;
}
6 changes: 3 additions & 3 deletions spec/directives/if/whitespace.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@

<===>
================================================================================
<===> error/condition/before_and/sass/input.sass
<===> condition/before_and/sass/input.sass
@if true
and true

<===> error/condition/before_and/sass/output.css
<===> condition/before_and/sass/output.css

<===> error/condition/before_and/sass/warning
<===> condition/before_and/sass/warning
WARNING: This selector doesn't have any properties and won't be rendered.

,
Expand Down
8 changes: 4 additions & 4 deletions spec/directives/import/whitespace.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ Error: Nothing may be indented beneath a @import rule.

<===>
================================================================================
<===> error/after_comma/sass/input.scss
<===> after_comma/sass/input.scss
@import "a.css",
"b.css"

<===> error/after_comma/sass/output.css
<===> after_comma/sass/output.css
@import "a.css";
@import "b.css";

<===>
================================================================================
<===> error/modifier/no_args/before/sass/input.scss
<===> modifier/no_args/before/sass/input.scss
@import "a.css"
b

<===> error/modifier/no_args/before/sass/output.css
<===> modifier/no_args/before/sass/output.css
@import "a.css" b;

<===>
Expand Down
18 changes: 9 additions & 9 deletions spec/directives/mixin/whitespace.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ d {

<===>
================================================================================
<===> error/include/plus/space_before_name/sass/input.sass
<===> include/plus/space_before_name/sass/input.sass
@mixin a
b: c
d
+ a

<===> error/include/plus/space_before_name/sass/output.css
<===> include/plus/space_before_name/sass/output.css

<===> error/include/plus/space_before_name/sass/warning
<===> include/plus/space_before_name/sass/warning
WARNING: This selector doesn't have any properties and won't be rendered.

,
Expand All @@ -129,16 +129,16 @@ WARNING: This selector doesn't have any properties and won't be rendered.

<===>
================================================================================
<===> error/include/plus/newline_before_name/sass/input.sass
<===> include/plus/newline_before_name/sass/input.sass
@mixin a
b: c
d
+
a

<===> error/include/plus/newline_before_name/sass/output.css
<===> include/plus/newline_before_name/sass/output.css

<===> error/include/plus/newline_before_name/sass/warning
<===> include/plus/newline_before_name/sass/warning
WARNING: This selector doesn't have any properties and won't be rendered.

,
Expand All @@ -149,15 +149,15 @@ WARNING: This selector doesn't have any properties and won't be rendered.

<===>
================================================================================
<===> error/include/plus/before_name/sass/input.sass
<===> include/plus/before_name/sass/input.sass
@mixin a
b
+
a

<===> error/include/plus/before_name/sass/output.css
<===> include/plus/before_name/sass/output.css

<===> error/include/plus/before_name/sass/warning
<===> include/plus/before_name/sass/warning
WARNING: This selector doesn't have any properties and won't be rendered.

,
Expand Down
6 changes: 3 additions & 3 deletions spec/operators/boolean.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ Error: Nothing may be indented beneath a variable declaration.

<===>
================================================================================
<===> error/whitespace/not/before/sass/input.sass
<===> whitespace/not/before/sass/input.sass
$a: b
not c

<===> error/whitespace/not/before/sass/output.css
<===> whitespace/not/before/sass/output.css

<===> error/whitespace/not/before/sass/warning
<===> whitespace/not/before/sass/warning
WARNING: This selector doesn't have any properties and won't be rendered.

,
Expand Down
4 changes: 2 additions & 2 deletions spec/parser/indentation.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ Error: Expected newline.

<===>
================================================================================
<===> error/mixed-syntax/semicolon/input.sass
<===> mixed-syntax/semicolon/input.sass
a
b: c;

<===> error/mixed-syntax/semicolon/output.css
<===> mixed-syntax/semicolon/output.css
a {
b: c;
}
Expand Down
4 changes: 2 additions & 2 deletions spec/values/lists/sass.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ Error: () isn't a valid CSS value.

<===>
================================================================================
<===> error/paren/no-indent/input.sass
<===> paren/no-indent/input.sass
a
b: (
c,
d
)

<===> error/paren/no-indent/output.css
<===> paren/no-indent/output.css
a {
b: c, d;
}
Expand Down

0 comments on commit 592c784

Please sign in to comment.