diff --git a/packages/@glimmer/compiler/test/compiler-test.ts b/packages/@glimmer/compiler/test/compiler-test.ts index 839fa80ce1..8346be0499 100644 --- a/packages/@glimmer/compiler/test/compiler-test.ts +++ b/packages/@glimmer/compiler/test/compiler-test.ts @@ -373,6 +373,20 @@ test( ['', [['', { id: s`gradient` }]]] ); +for (let svgElement of ['animate', 'animateMotion', 'animateTransform', 'circle', 'clipPath', + 'defs', 'desc', 'ellipse', 'feBend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', + 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', + 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', + 'feSpecularLighting', 'feTile', 'feTurbulence', 'filter', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'marker', 'mask', 'metadata', + 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'set', 'stop', 'switch', 'symbol', 'text', 'textPath', + 'title', 'tspan', 'use', 'view']) { + test( + `${svgElement} is valid`, + `<${svgElement}>`, + ['', [[`<${svgElement}>`]]] + ); +} + test('curlies separated by content whitespace', `{{a}} {{b}}`, '^a', s` `, '^b'); test('curlies right next to each other', `
{{a}}{{b}}{{c}}wat{{d}}
`, [