Skip to content

Commit

Permalink
Add tests for partially interpolated selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
saper committed Nov 13, 2015
1 parent 3461ded commit 649c55e
Show file tree
Hide file tree
Showing 18 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.test12\@bar {
content: '1.2'; }
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$key: 'bar';
.test12#{'\\@#{$key}'} { content: '1.2'; }
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.test22\@bar {
content: '2.2'; }
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
$key: 'bar';
$suffix2: '\\@#{$key}';
.test22#{$suffix2} { content: '2.2'; }
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.test32\@baz {
content: '3.2'; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.test32#{'\\@baz'} { content: '3.2'; }
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Error: Invalid CSS after ".test11": expected selector, was "@bar"
on line 2 of /home/saper/sw/sass-spec/spec/parser/interpolate/44_selector/11_escaped_interpolated_value/input.scss
Use --trace for backtrace.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$key: 'bar';
.test11#{'\@#{$key}'} { content: '1.1'; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
65
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Error: Invalid CSS after ".test21": expected selector, was "@bar"
on line 3 of /home/saper/sw/sass-spec/spec/parser/interpolate/44_selector/21_escaped_interpolated_variable/input.scss
Use --trace for backtrace.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
$key: 'bar';
$suffix1: '\@#{$key}';
.test21#{$suffix1} { content: '2.1'; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
65
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Error: Invalid CSS after ".test31": expected selector, was "@baz"
on line 1 of /home/saper/sw/sass-spec/spec/parser/interpolate/44_selector/31_escaped_literal/input.scss
Use --trace for backtrace.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.test31#{'\@baz'} { content: '3.1'; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
65

0 comments on commit 649c55e

Please # to comment.