Skip to content

Commit

Permalink
Enable LibSass specs for @content args
Browse files Browse the repository at this point in the history
[skip libsass]
  • Loading branch information
xzyfer committed Nov 25, 2018
1 parent ce27ae2 commit f591d7e
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 2 deletions.
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);

--^
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;

--^
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: ) {}

-------------------------------^
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);

-----------^
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 {}

---------------^
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 {}

---------------^
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 spec/mixin/content/arguments/error/too_few_args/error-libsass
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);

--^
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);

--^
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 ();

----------------------^
2 changes: 0 additions & 2 deletions spec/mixin/content/arguments/options.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---
:ignore_for:
- ruby-sass
:todo:
- libsass # sass/libsass#2723

0 comments on commit f591d7e

Please sign in to comment.