Skip to content

Commit 5c1c81e

Browse files
committed
tests for R-nodes
1 parent db337bd commit 5c1c81e

File tree

6 files changed

+37
-0
lines changed

6 files changed

+37
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<div><a href="/foo">bar</a></div>
2+
<br />
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<div><a href="/foo">bar</a></div>
2+
<br />
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{#snippet sum(a, b)}
2+
<p>{a} + {b} = {a + b}</p>
3+
{/snippet}
4+
5+
{@render sum(1, 2)}
6+
{@render sum(3, 4)}
7+
{@render sum(5, 6)}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{#snippet sum(a, b)}
2+
<p>{a} + {b} = {a + b}</p>
3+
{/snippet}
4+
5+
{@render sum(1, 2)}
6+
{@render sum(3, 4)}
7+
{@render sum(5, 6)}

packages/svelte/tests/print/samples/style/input.svelte

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,10 @@
3434
content: "";
3535
display: block;
3636
}
37+
.container > .item { color: red; }
38+
h1 + p { margin-top: 0; }
39+
40+
.container .item, nav > ul.menu {
41+
color: red;
42+
}
3743
</style>

packages/svelte/tests/print/samples/style/output.svelte

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,17 @@
5656
5757
display: block;
5858
}
59+
60+
.container > .item {
61+
color: red;
62+
}
63+
64+
h1 + p {
65+
margin-top: 0;
66+
}
67+
68+
.container .item,
69+
nav > ul.menu {
70+
color: red;
71+
}
5972
</style>

0 commit comments

Comments
 (0)