-
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.
Refactor specs for the for at-rule to be conformant
- Loading branch information
Showing
12 changed files
with
181 additions
and
196 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,98 @@ | ||
<===> inclusive_forward/input.scss | ||
a { | ||
@for $i from 1 through 5 {b: $i;} | ||
} | ||
|
||
<===> inclusive_forward/output.css | ||
a { | ||
b: 1; | ||
b: 2; | ||
b: 3; | ||
b: 4; | ||
b: 5; | ||
} | ||
|
||
<===> | ||
================================================================================ | ||
<===> inclusive_backward/input.scss | ||
a { | ||
@for $i from 5 through 1 {b: $i;} | ||
} | ||
|
||
<===> inclusive_backward/output.css | ||
a { | ||
b: 5; | ||
b: 4; | ||
b: 3; | ||
b: 2; | ||
b: 1; | ||
} | ||
|
||
<===> | ||
================================================================================ | ||
<===> empty/input.scss | ||
a { | ||
@for $i from 1 to 1 {b: $i;} | ||
} | ||
|
||
<===> empty/output.css | ||
|
||
<===> | ||
================================================================================ | ||
<===> exclusive_forward/input.scss | ||
a { | ||
@for $i from 1 to 5 {b: $i;} | ||
} | ||
|
||
<===> exclusive_forward/output.css | ||
a { | ||
b: 1; | ||
b: 2; | ||
b: 3; | ||
b: 4; | ||
} | ||
|
||
<===> | ||
================================================================================ | ||
<===> exclusive_backward/input.scss | ||
a { | ||
@for $i from 5 to 1 {b: $i;} | ||
} | ||
|
||
<===> exclusive_backward/output.css | ||
a { | ||
b: 5; | ||
b: 4; | ||
b: 3; | ||
b: 2; | ||
} | ||
|
||
<===> | ||
================================================================================ | ||
<===> to_scope/input.scss | ||
// Overriding the variable inside the loop will not impact the end of the loop. | ||
$limit: 4; | ||
|
||
@for $i from 1 through $limit { | ||
$limit: 2; | ||
a { | ||
b: $limit c $i; | ||
} | ||
} | ||
|
||
<===> to_scope/output.css | ||
a { | ||
b: 2 c 1; | ||
} | ||
|
||
a { | ||
b: 2 c 2; | ||
} | ||
|
||
a { | ||
b: 2 c 3; | ||
} | ||
|
||
a { | ||
b: 2 c 4; | ||
} |
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,83 @@ | ||
<===> from_type/input.scss | ||
@for $i from "foo" through 4 {} | ||
<===> from_type/error | ||
Error: "foo" is not a number. | ||
, | ||
1 | @for $i from "foo" through 4 {} | ||
| ^^^^^ | ||
' | ||
input.scss 1:14 root stylesheet | ||
|
||
<===> from_type/error-libsass | ||
Error: "foo" is not an integer. | ||
on line 1 of input.scss | ||
Use --trace for backtrace. | ||
|
||
<===> | ||
================================================================================ | ||
<===> from_float/options.yml | ||
--- | ||
:todo: | ||
- libsass | ||
|
||
<===> from_float/input.scss | ||
@for $i from 1.5 through 4 {} | ||
<===> from_float/error | ||
Error: 1.5 is not an int. | ||
, | ||
1 | @for $i from 1.5 through 4 {} | ||
| ^^^ | ||
' | ||
input.scss 1:14 root stylesheet | ||
|
||
<===> | ||
================================================================================ | ||
<===> to_type/input.scss | ||
@for $i from 1 through "foo" {} | ||
<===> to_type/error | ||
Error: "foo" is not a number. | ||
, | ||
1 | @for $i from 1 through "foo" {} | ||
| ^^^^^ | ||
' | ||
input.scss 1:24 root stylesheet | ||
|
||
<===> to_type/error-libsass | ||
Error: "foo" is not an integer. | ||
on line 1 of input.scss | ||
Use --trace for backtrace. | ||
|
||
<===> | ||
================================================================================ | ||
<===> to_float/options.yml | ||
--- | ||
:todo: | ||
- libsass | ||
|
||
<===> to_float/input.scss | ||
@for $i from 1 through 1.5 {} | ||
<===> to_float/error | ||
Error: 1.5 is not an int. | ||
, | ||
1 | @for $i from 1 through 1.5 {} | ||
| ^^^ | ||
' | ||
input.scss 1:24 root stylesheet | ||
|
||
<===> | ||
================================================================================ | ||
<===> incompatible_units/input.scss | ||
@for $i from 100% through 42px {} | ||
<===> incompatible_units/error | ||
Error: Expected 100% to have a length unit (in, cm, pc, mm, q, pt, px). | ||
, | ||
1 | @for $i from 100% through 42px {} | ||
| ^^^^ | ||
' | ||
input.scss 1:14 root stylesheet | ||
|
||
<===> incompatible_units/error-libsass | ||
Error: Incompatible units: '%' and 'px'. | ||
on line 1:14 of input.scss | ||
>> @for $i from 100% through 42px {} | ||
-------------^ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
spec/non_conformant/errors/loop-for/numeric/lower_eval.hrx
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
spec/non_conformant/errors/loop-for/numeric/lower_expand.hrx
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
spec/non_conformant/errors/loop-for/numeric/upper_eval.hrx
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
spec/non_conformant/errors/loop-for/numeric/upper_expand.hrx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.