Skip to content

Commit 1b28566

Browse files
committed
test: update
1 parent 4fcc739 commit 1b28566

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

packages/runtime-vapor/__tests__/dom/mathML.spec.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,22 @@ describe('MathML support', () => {
1616
define({
1717
setup() {
1818
const t0 = template(
19-
'<math display="block" id="e0"><semantics id="e1"><mrow id="e2"><msup><mi>x</mi><mn>2</mn></msup><mo>+</mo><mi>y</mi></mrow><annotation-xml encoding="text/html" id="e3"><div id="e4"></div><svg id="e5"></svg></annotation-xml></semantics></math>',
19+
`<math display="block" id="e0">
20+
<semantics id="e1">
21+
<mrow id="e2">
22+
<msup>
23+
<mi>x</mi>
24+
<mn>2</mn>
25+
</msup>
26+
<mo>+</mo>
27+
<mi>y</mi>
28+
</mrow>
29+
<annotation-xml encoding="text/html" id="e3">
30+
<div id="e4"></div>
31+
<svg id="e5"></svg>
32+
</annotation-xml>
33+
</semantics>
34+
</math>`,
2035
true,
2136
2,
2237
)

packages/runtime-vapor/__tests__/dom/svg.spec.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@ describe('SVG support', () => {
1616
define({
1717
setup() {
1818
const t0 = template(
19-
'<div id="e0"><svg id="e1"><foreignObject id="e2"><div id="e3"></div><svg id="e4"></svg><math id="e5"></math></foreignObject></svg></div>',
19+
`<div id="e0">
20+
<svg id="e1">
21+
<foreignObject id="e2">
22+
<div id="e3"></div>
23+
<svg id="e4"></svg>
24+
<math id="e5"></math>
25+
</foreignObject>
26+
</svg>
27+
</div>`,
2028
true,
2129
)
2230
return t0()

0 commit comments

Comments
 (0)