Skip to content

Commit 53ff679

Browse files
committed
Updated test for import for #34.
1 parent f68f038 commit 53ff679

File tree

2 files changed

+38
-9
lines changed

2 files changed

+38
-9
lines changed

test/cases/import.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
1+
/* fineprint above */
22
@import url("fineprint.css") print;
3+
/* bluish above */
34
@import url("bluish.css") projection, tv;
45
@import 'custom.css';
56
@import "common.css" screen, projection;

test/cases/import.json

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22
"type": "stylesheet",
33
"stylesheet": {
44
"rules": [
5+
{
6+
"type": "comment",
7+
"comment": " fineprint above ",
8+
"position": {
9+
"start": {
10+
"line": 1,
11+
"column": 1
12+
},
13+
"end": {
14+
"line": 1,
15+
"column": 22
16+
}
17+
}
18+
},
519
{
620
"type": "import",
721
"import": "url(\"fineprint.css\") print",
@@ -17,57 +31,71 @@
1731
}
1832
},
1933
{
20-
"type": "import",
21-
"import": "url(\"bluish.css\") projection, tv",
34+
"type": "comment",
35+
"comment": " bluish above ",
2236
"position": {
2337
"start": {
2438
"line": 3,
2539
"column": 1
2640
},
2741
"end": {
2842
"line": 3,
29-
"column": 42
43+
"column": 19
3044
}
3145
}
3246
},
3347
{
3448
"type": "import",
35-
"import": "'custom.css'",
49+
"import": "url(\"bluish.css\") projection, tv",
3650
"position": {
3751
"start": {
3852
"line": 4,
3953
"column": 1
4054
},
4155
"end": {
4256
"line": 4,
43-
"column": 22
57+
"column": 42
4458
}
4559
}
4660
},
4761
{
4862
"type": "import",
49-
"import": "\"common.css\" screen, projection",
63+
"import": "'custom.css'",
5064
"position": {
5165
"start": {
5266
"line": 5,
5367
"column": 1
5468
},
5569
"end": {
5670
"line": 5,
57-
"column": 41
71+
"column": 22
5872
}
5973
}
6074
},
6175
{
6276
"type": "import",
63-
"import": "url('landscape.css') screen and (orientation:landscape)",
77+
"import": "\"common.css\" screen, projection",
6478
"position": {
6579
"start": {
6680
"line": 6,
6781
"column": 1
6882
},
6983
"end": {
7084
"line": 6,
85+
"column": 41
86+
}
87+
}
88+
},
89+
{
90+
"type": "import",
91+
"import": "url('landscape.css') screen and (orientation:landscape)",
92+
"position": {
93+
"start": {
94+
"line": 7,
95+
"column": 1
96+
},
97+
"end": {
98+
"line": 7,
7199
"column": 65
72100
}
73101
}

0 commit comments

Comments
 (0)