Skip to content

Commit 7487047

Browse files
committed
Updated test for #34.
* Added position. * Fixed comment text. * Removed newline at nd of file.
1 parent 2e7e4e3 commit 7487047

File tree

1 file changed

+121
-31
lines changed

1 file changed

+121
-31
lines changed

test/cases/comment.at-rule.json

Lines changed: 121 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,146 @@
11
{
2-
"type":"stylesheet",
3-
"stylesheet":{
4-
"rules":[
2+
"type": "stylesheet",
3+
"stylesheet": {
4+
"rules": [
55
{
6-
"type":"keyframes",
7-
"name":"test",
8-
"vendor":"-webkit-",
9-
"keyframes":[
6+
"type": "keyframes",
7+
"name": "test",
8+
"vendor": "-webkit-",
9+
"keyframes": [
1010
{
11-
"type":"comment",
12-
"comment":" 0% above "
11+
"type": "comment",
12+
"comment": " 0% above ",
13+
"position": {
14+
"start": {
15+
"line": 2,
16+
"column": 5
17+
},
18+
"end": {
19+
"line": 2,
20+
"column": 19
21+
}
22+
}
1323
},
1424
{
15-
"type":"keyframe",
16-
"values":[
25+
"type": "keyframe",
26+
"values": [
1727
"0%"
1828
],
19-
"declarations":[
29+
"declarations": [
2030
{
21-
"type":"comment",
22-
"comment":" 0% inside "
31+
"type": "comment",
32+
"comment": " 0% inside ",
33+
"position": {
34+
"start": {
35+
"line": 4,
36+
"column": 9
37+
},
38+
"end": {
39+
"line": 4,
40+
"column": 24
41+
}
42+
}
2343
},
2444
{
25-
"type":"declaration",
26-
"property":"color",
27-
"value":"red"
45+
"type": "declaration",
46+
"property": "color",
47+
"value": "red",
48+
"position": {
49+
"start": {
50+
"line": 5,
51+
"column": 9
52+
},
53+
"end": {
54+
"line": 5,
55+
"column": 19
56+
}
57+
}
58+
}
59+
],
60+
"position": {
61+
"start": {
62+
"line": 3,
63+
"column": 5
64+
},
65+
"end": {
66+
"line": 6,
67+
"column": 6
2868
}
29-
]
69+
}
3070
},
3171
{
32-
"type":"comment",
33-
"comment":" 100% above "
72+
"type": "comment",
73+
"comment": " 100% above ",
74+
"position": {
75+
"start": {
76+
"line": 8,
77+
"column": 5
78+
},
79+
"end": {
80+
"line": 8,
81+
"column": 21
82+
}
83+
}
3484
},
3585
{
36-
"type":"keyframe",
37-
"values":[
86+
"type": "keyframe",
87+
"values": [
3888
"100%"
3989
],
40-
"declarations":[
90+
"declarations": [
4191
{
42-
"type":"comment",
43-
"comment":" 100% above "
92+
"type": "comment",
93+
"comment": " 100% inside ",
94+
"position": {
95+
"start": {
96+
"line": 10,
97+
"column": 9
98+
},
99+
"end": {
100+
"line": 10,
101+
"column": 26
102+
}
103+
}
44104
},
45105
{
46-
"type":"declaration",
47-
"property":"color",
48-
"value":"green"
106+
"type": "declaration",
107+
"property": "color",
108+
"value": "green",
109+
"position": {
110+
"start": {
111+
"line": 11,
112+
"column": 9
113+
},
114+
"end": {
115+
"line": 11,
116+
"column": 21
117+
}
118+
}
119+
}
120+
],
121+
"position": {
122+
"start": {
123+
"line": 9,
124+
"column": 5
125+
},
126+
"end": {
127+
"line": 12,
128+
"column": 6
49129
}
50-
]
130+
}
131+
}
132+
],
133+
"position": {
134+
"start": {
135+
"line": 1,
136+
"column": 1
137+
},
138+
"end": {
139+
"line": 13,
140+
"column": 2
51141
}
52-
]
142+
}
53143
}
54144
]
55145
}
56-
}
146+
}

0 commit comments

Comments
 (0)