Skip to content

Commit 62ea94f

Browse files
committed
beef up test
1 parent ff80c53 commit 62ea94f

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

packages/svelte/tests/parser-modern/samples/semicolon-inside-quotes/input.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");
66
h1 {
77
font-weight: bold;
8+
background: url("whatever");
89
}
9-
</style>
10+
</style>

packages/svelte/tests/parser-modern/samples/semicolon-inside-quotes/output.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"css": {
33
"type": "Style",
44
"start": 36,
5-
"end": 174,
5+
"end": 205,
66
"attributes": [],
77
"children": [
88
{
@@ -38,25 +38,32 @@
3838
"block": {
3939
"type": "Block",
4040
"start": 140,
41-
"end": 165,
41+
"end": 196,
4242
"children": [
4343
{
4444
"type": "Declaration",
4545
"start": 144,
4646
"end": 161,
4747
"property": "font-weight",
4848
"value": "bold"
49+
},
50+
{
51+
"type": "Declaration",
52+
"start": 165,
53+
"end": 192,
54+
"property": "background",
55+
"value": "url(\"whatever\")"
4956
}
5057
]
5158
},
5259
"start": 137,
53-
"end": 165
60+
"end": 196
5461
}
5562
],
5663
"content": {
5764
"start": 43,
58-
"end": 166,
59-
"styles": "\n\t@import url(\"https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap\");\n\th1 {\n\t\tfont-weight: bold;\n\t}\n"
65+
"end": 197,
66+
"styles": "\n\t@import url(\"https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap\");\n\th1 {\n\t\tfont-weight: bold;\n\t\tbackground: url(\"whatever\");\n\t}\n"
6067
}
6168
},
6269
"js": [],
@@ -97,4 +104,4 @@
97104
"transparent": false
98105
},
99106
"options": null
100-
}
107+
}

0 commit comments

Comments
 (0)