-
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.
Enable LibSass specs for @content args
[skip libsass]
- Loading branch information
Showing
11 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
spec/mixin/content/arguments/error/args_for_argless/error-libsass
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,7 @@ | ||
Error: wrong number of arguments (1 for 0) for `@content' | ||
on line 2:3 of test.scss, in mixin `@content` | ||
from line 2:3 of test.scss, in mixin `mixin` | ||
from line 5:10 of test.scss | ||
>> @content(value); | ||
|
||
--^ |
6 changes: 6 additions & 0 deletions
6
spec/mixin/content/arguments/error/expected_args/error-libsass
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,6 @@ | ||
Error: Mixin @content is missing argument $arg1. | ||
on line 2:3 of test.scss, in mixin `mixin` | ||
from line 5:10 of test.scss | ||
>> @content; | ||
|
||
--^ |
5 changes: 5 additions & 0 deletions
5
spec/mixin/content/arguments/error/invalid_arglist/error-libsass
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,5 @@ | ||
Error: Invalid CSS after "...) using ($arg1:": expected expression (e.g. 1px, bold), was ") {}" | ||
on line 5:32 of test.scss | ||
>> @include mixin() using ($arg1: ) {} | ||
|
||
-------------------------------^ |
7 changes: 7 additions & 0 deletions
7
spec/mixin/content/arguments/error/invalid_named_arg/error-libsass
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,7 @@ | ||
Error: Mixin @content has no parameter named $invalid | ||
on line 2:12 of test.scss, in mixin `@content` | ||
from line 2:3 of test.scss, in mixin `mixin` | ||
from line 5:10 of test.scss | ||
>> @content($invalid: value); | ||
|
||
-----------^ |
5 changes: 5 additions & 0 deletions
5
spec/mixin/content/arguments/error/missing_arglist/error-libsass
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,5 @@ | ||
Error: Invalid CSS after "...ude mixin using": expected "(", was "{}" | ||
on line 5:16 of test.scss | ||
>> @include mixin using {} | ||
|
||
---------------^ |
5 changes: 5 additions & 0 deletions
5
spec/mixin/content/arguments/error/missing_parens/error-libsass
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,5 @@ | ||
Error: Invalid CSS after "...ude mixin using": expected "(", was "$arg1 {}" | ||
on line 5:16 of test.scss | ||
>> @include mixin using $arg1 {} | ||
|
||
---------------^ |
5 changes: 5 additions & 0 deletions
5
spec/mixin/content/arguments/error/missing_using/error-libsass
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,5 @@ | ||
Error: Invalid CSS after "@include mixin()": expected ";", was "() {}" | ||
on line 5:16 of test.scss | ||
>> @include mixin() () {} | ||
|
||
---------------^ |
6 changes: 6 additions & 0 deletions
6
spec/mixin/content/arguments/error/too_few_args/error-libsass
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,6 @@ | ||
Error: Mixin @content is missing argument $arg2. | ||
on line 2:3 of test.scss, in mixin `mixin` | ||
from line 5:10 of test.scss | ||
>> @content(1); | ||
|
||
--^ |
7 changes: 7 additions & 0 deletions
7
spec/mixin/content/arguments/error/too_many_args/error-libsass
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,7 @@ | ||
Error: wrong number of arguments (3 for 2) for `@content' | ||
on line 2:3 of test.scss, in mixin `@content` | ||
from line 2:3 of test.scss, in mixin `mixin` | ||
from line 5:10 of test.scss | ||
>> @content(1, 2, 3); | ||
|
||
--^ |
5 changes: 5 additions & 0 deletions
5
spec/mixin/content/arguments/error/using_without_block/error-libsass
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,5 @@ | ||
Error: Invalid CSS after "... mixin using ()": expected "{", was ";" | ||
on line 5:23 of test.scss | ||
>> @include mixin using (); | ||
|
||
----------------------^ |
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
--- | ||
:ignore_for: | ||
- ruby-sass | ||
:todo: | ||
- libsass # sass/libsass#2723 |