File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/svelte/tests/runtime-runes/samples/svg-namespace-infer Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 10
10
11
11
{@html ' <text x="0" y="40">html</text>' }
12
12
13
- {@render test (" test " )}
13
+ {@render test (" snippet " )}
14
14
15
15
{#snippet test (text )}
16
16
<text x ={20 } y ={42 }>{text }</text >
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ export default test({
7
7
<text x="0" y="26">true</text>
8
8
<text x="0" y="42">0</text>
9
9
<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>
11
12
</svg>
12
13
` ,
13
14
test ( { assert, target } ) {
@@ -18,7 +19,7 @@ export default test({
18
19
19
20
const text_elements = target . querySelectorAll ( 'text' ) ;
20
21
21
- assert . equal ( text_elements . length , 5 ) ;
22
+ assert . equal ( text_elements . length , 6 ) ;
22
23
23
24
for ( const { namespaceURI } of text_elements )
24
25
assert . equal ( namespaceURI , 'http://www.w3.org/2000/svg' ) ;
You can’t perform that action at this time.
0 commit comments