Skip to content

Commit

Permalink
✅ Add interpolation pseudo-class tests for Sass
Browse files Browse the repository at this point in the history
  • Loading branch information
bgriffith authored and tonyganch committed Jun 21, 2016
1 parent 6039575 commit f3da809
Show file tree
Hide file tree
Showing 46 changed files with 2,143 additions and 99 deletions.
38 changes: 5 additions & 33 deletions test/sass/pseudoc/0.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,16 @@
"type": "pseudoClass",
"content": [
{
"type": "interpolation",
"content": [
{
"type": "variable",
"content": [
{
"type": "ident",
"content": "a",
"syntax": "sass",
"start": {
"line": 1,
"column": 5
},
"end": {
"line": 1,
"column": 5
}
}
],
"syntax": "sass",
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 5
}
}
],
"type": "ident",
"content": "test",
"syntax": "sass",
"start": {
"line": 1,
"column": 2
},
"end": {
"line": 1,
"column": 6
"column": 5
}
}
],
Expand All @@ -50,6 +22,6 @@
},
"end": {
"line": 1,
"column": 6
"column": 5
}
}
}
2 changes: 1 addition & 1 deletion test/sass/pseudoc/0.sass
Original file line number Diff line number Diff line change
@@ -1 +1 @@
:#{$a}
:test
2 changes: 1 addition & 1 deletion test/sass/pseudoc/1.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"line": 1,
"column": 10
}
}
}
82 changes: 82 additions & 0 deletions test/sass/pseudoc/10.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"type": "pseudoClass",
"content": [
{
"type": "ident",
"content": "not",
"syntax": "sass",
"start": {
"line": 1,
"column": 2
},
"end": {
"line": 1,
"column": 4
}
},
{
"type": "arguments",
"content": [
{
"type": "selector",
"content": [
{
"type": "class",
"content": [
{
"type": "ident",
"content": "heading",
"syntax": "sass",
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
}
],
"syntax": "sass",
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 13
}
}
],
"syntax": "sass",
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 13
}
}
],
"syntax": "sass",
"start": {
"line": 1,
"column": 5
},
"end": {
"line": 1,
"column": 14
}
}
],
"syntax": "sass",
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 14
}
}
1 change: 1 addition & 0 deletions test/sass/pseudoc/10.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:not(.heading)
82 changes: 82 additions & 0 deletions test/sass/pseudoc/11.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"type": "pseudoClass",
"content": [
{
"type": "ident",
"content": "not",
"syntax": "sass",
"start": {
"line": 1,
"column": 2
},
"end": {
"line": 1,
"column": 4
}
},
{
"type": "arguments",
"content": [
{
"type": "selector",
"content": [
{
"type": "typeSelector",
"content": [
{
"type": "ident",
"content": "h1",
"syntax": "sass",
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 7
}
}
],
"syntax": "sass",
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 7
}
}
],
"syntax": "sass",
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 7
}
}
],
"syntax": "sass",
"start": {
"line": 1,
"column": 5
},
"end": {
"line": 1,
"column": 8
}
}
],
"syntax": "sass",
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 8
}
}
1 change: 1 addition & 0 deletions test/sass/pseudoc/11.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:not(h1)
82 changes: 82 additions & 0 deletions test/sass/pseudoc/12.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"type": "pseudoClass",
"content": [
{
"type": "ident",
"content": "not",
"syntax": "sass",
"start": {
"line": 1,
"column": 2
},
"end": {
"line": 1,
"column": 4
}
},
{
"type": "arguments",
"content": [
{
"type": "selector",
"content": [
{
"type": "typeSelector",
"content": [
{
"type": "ident",
"content": "*",
"syntax": "sass",
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 6
}
}
],
"syntax": "sass",
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 6
}
}
],
"syntax": "sass",
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 6
}
}
],
"syntax": "sass",
"start": {
"line": 1,
"column": 5
},
"end": {
"line": 1,
"column": 7
}
}
],
"syntax": "sass",
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 7
}
}
1 change: 1 addition & 0 deletions test/sass/pseudoc/12.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:not(*)
Loading

0 comments on commit f3da809

Please sign in to comment.