Skip to content

Commit 5916733

Browse files
committed
Add test for #75
1 parent fbfe170 commit 5916733

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

test/cases/quote-escape/ast.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"type": "stylesheet",
3+
"stylesheet": {
4+
"rules": [
5+
{
6+
"type": "rule",
7+
"selectors": [
8+
"p[qwe=\"a\\\",b\"]"
9+
],
10+
"declarations": [
11+
{
12+
"type": "declaration",
13+
"property": "color",
14+
"value": "red",
15+
"position": {
16+
"start": {
17+
"line": 1,
18+
"column": 18
19+
},
20+
"end": {
21+
"line": 1,
22+
"column": 29
23+
},
24+
"source": "input.css"
25+
}
26+
}
27+
],
28+
"position": {
29+
"start": {
30+
"line": 1,
31+
"column": 1
32+
},
33+
"end": {
34+
"line": 1,
35+
"column": 30
36+
},
37+
"source": "input.css"
38+
}
39+
}
40+
],
41+
"parsingErrors": []
42+
}
43+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
p[qwe="a\",b"]{color:red;}

test/cases/quote-escape/input.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
p[qwe="a\",b"] { color: red }

test/cases/quote-escape/output.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
p[qwe="a\",b"] {
2+
color: red;
3+
}

0 commit comments

Comments
 (0)