Skip to content

Commit 30f52fa

Browse files
committed
Revert "Updated test for import for #34.".
Issue only applies to rules which can accept a body. This reverts commit 53ff679.
1 parent 53ff679 commit 30f52fa

File tree

2 files changed

+9
-38
lines changed

2 files changed

+9
-38
lines changed

test/cases/import.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
/* fineprint above */
1+
22
@import url("fineprint.css") print;
3-
/* bluish above */
43
@import url("bluish.css") projection, tv;
54
@import 'custom.css';
65
@import "common.css" screen, projection;

test/cases/import.json

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,6 @@
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-
},
195
{
206
"type": "import",
217
"import": "url(\"fineprint.css\") print",
@@ -30,30 +16,16 @@
3016
}
3117
}
3218
},
33-
{
34-
"type": "comment",
35-
"comment": " bluish above ",
36-
"position": {
37-
"start": {
38-
"line": 3,
39-
"column": 1
40-
},
41-
"end": {
42-
"line": 3,
43-
"column": 19
44-
}
45-
}
46-
},
4719
{
4820
"type": "import",
4921
"import": "url(\"bluish.css\") projection, tv",
5022
"position": {
5123
"start": {
52-
"line": 4,
24+
"line": 3,
5325
"column": 1
5426
},
5527
"end": {
56-
"line": 4,
28+
"line": 3,
5729
"column": 42
5830
}
5931
}
@@ -63,11 +35,11 @@
6335
"import": "'custom.css'",
6436
"position": {
6537
"start": {
66-
"line": 5,
38+
"line": 4,
6739
"column": 1
6840
},
6941
"end": {
70-
"line": 5,
42+
"line": 4,
7143
"column": 22
7244
}
7345
}
@@ -77,11 +49,11 @@
7749
"import": "\"common.css\" screen, projection",
7850
"position": {
7951
"start": {
80-
"line": 6,
52+
"line": 5,
8153
"column": 1
8254
},
8355
"end": {
84-
"line": 6,
56+
"line": 5,
8557
"column": 41
8658
}
8759
}
@@ -91,11 +63,11 @@
9163
"import": "url('landscape.css') screen and (orientation:landscape)",
9264
"position": {
9365
"start": {
94-
"line": 7,
66+
"line": 6,
9567
"column": 1
9668
},
9769
"end": {
98-
"line": 7,
70+
"line": 6,
9971
"column": 65
10072
}
10173
}

0 commit comments

Comments
 (0)