diff --git a/packages/@glimmer-workspace/integration-tests/test/html/math-test.ts b/packages/@glimmer-workspace/integration-tests/test/html/math-test.ts new file mode 100644 index 000000000..be0ab0c4b --- /dev/null +++ b/packages/@glimmer-workspace/integration-tests/test/html/math-test.ts @@ -0,0 +1,20 @@ +import { defineComponent, jitSuite, RenderTest, test } from '../..'; + +class MathElementTest extends RenderTest { + static suiteName = ''; + + @test + ' element can render'() { + const Bar = defineComponent({}, 'x'); + + this.renderComponent(Bar); + + let el = (s: string) => (this.element as unknown as HTMLElement).querySelector(s); + + this.assert.strictEqual(el('math')?.namespaceURI, 'http://www.w3.org/1998/Math/MathML'); + this.assert.strictEqual(el('msqrt')?.namespaceURI, 'http://www.w3.org/1998/Math/MathML'); + this.assert.strictEqual(el('mi')?.namespaceURI, 'http://www.w3.org/1998/Math/MathML'); + } +} + +jitSuite(MathElementTest);