]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
test: update
authordaiwei <daiwei521@126.com>
Mon, 28 Jul 2025 00:31:12 +0000 (08:31 +0800)
committerdaiwei <daiwei521@126.com>
Mon, 28 Jul 2025 00:31:12 +0000 (08:31 +0800)
packages/runtime-vapor/__tests__/dom/mathML.spec.ts
packages/runtime-vapor/__tests__/dom/svg.spec.ts

index f9d1122f1667d72a66a5a85a56a33156d375d924..eed0b8218a4c8b6040a25ebcaa07d34dec2ceca1 100644 (file)
@@ -16,7 +16,22 @@ describe('MathML support', () => {
     define({
       setup() {
         const t0 = template(
-          '<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>',
+          `<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>`,
           true,
           2,
         )
index 5f0f79d1ba081a6e4c72ebcf1e17d1aa3e4b0c1f..850a7a9c928832ba9d2b77bc2df0f35971e9c018 100644 (file)
@@ -16,7 +16,15 @@ describe('SVG support', () => {
     define({
       setup() {
         const t0 = template(
-          '<div id="e0"><svg id="e1"><foreignObject id="e2"><div id="e3"></div><svg id="e4"></svg><math id="e5"></math></foreignObject></svg></div>',
+          `<div id="e0">
+            <svg id="e1">
+              <foreignObject id="e2">
+                <div id="e3"></div>
+                <svg id="e4"></svg>
+                <math id="e5"></math>
+              </foreignObject>
+            </svg>
+          </div>`,
           true,
         )
         return t0()