Skip to content

Commit b2781f1

Browse files
committed
test
1 parent 390f3f3 commit b2781f1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/svelte/tests/runtime-runes/samples/svg-namespace-infer/Wrapper.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
{@html '<text x="0" y="40">html</text>'}
1212

13-
{@render test("test")}
13+
{@render test("snippet")}
1414

1515
{#snippet test(text)}
1616
<text x={20} y={42}>{text}</text>

packages/svelte/tests/runtime-runes/samples/svg-namespace-infer/_config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ export default test({
77
<text x="0" y="26">true</text>
88
<text x="0" y="42">0</text>
99
<text x="10" y="42">1</text>
10-
<text x="20" y="42">test</text>
10+
<text x="0" y="40">html</text>
11+
<text x="20" y="42">snippet</text>
1112
</svg>
1213
`,
1314
test({ assert, target }) {
@@ -18,7 +19,7 @@ export default test({
1819

1920
const text_elements = target.querySelectorAll('text');
2021

21-
assert.equal(text_elements.length, 5);
22+
assert.equal(text_elements.length, 6);
2223

2324
for (const { namespaceURI } of text_elements)
2425
assert.equal(namespaceURI, 'http://www.w3.org/2000/svg');

0 commit comments

Comments
 (0)