Files
owl/tests/compiler/__snapshots__/svg.test.ts.snap
T

54 lines
1.8 KiB
Plaintext
Raw Normal View History

2021-11-19 11:31:04 +01:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`properly support svg add proper namespace to g tags 1`] = `
"function anonymous(bdom, helpers
) {
2021-11-29 13:22:04 +01:00
let { text, createBlock, list, multi, html, toggler, component, comment } = bdom;
2021-11-19 11:31:04 +01:00
let block1 = createBlock(\`<g block-ns=\\"http://www.w3.org/2000/svg\\"><circle cx=\\"50\\" cy=\\"50\\" r=\\"4\\" stroke=\\"green\\" stroke-width=\\"1\\" fill=\\"yellow\\"/> </g>\`);
return function template(ctx, node, key = \\"\\") {
return block1();
}
}"
`;
exports[`properly support svg add proper namespace to svg 1`] = `
"function anonymous(bdom, helpers
) {
2021-11-29 13:22:04 +01:00
let { text, createBlock, list, multi, html, toggler, component, comment } = bdom;
2021-11-19 11:31:04 +01:00
let block1 = createBlock(\`<svg block-ns=\\"http://www.w3.org/2000/svg\\" width=\\"100px\\" height=\\"90px\\"><circle cx=\\"50\\" cy=\\"50\\" r=\\"4\\" stroke=\\"green\\" stroke-width=\\"1\\" fill=\\"yellow\\"/> </svg>\`);
return function template(ctx, node, key = \\"\\") {
return block1();
}
}"
`;
exports[`properly support svg namespace to g tags not added if already in svg namespace 1`] = `
"function anonymous(bdom, helpers
) {
2021-11-29 13:22:04 +01:00
let { text, createBlock, list, multi, html, toggler, component, comment } = bdom;
2021-11-19 11:31:04 +01:00
let block1 = createBlock(\`<svg block-ns=\\"http://www.w3.org/2000/svg\\"><g/></svg>\`);
return function template(ctx, node, key = \\"\\") {
return block1();
}
}"
`;
exports[`properly support svg namespace to svg tags added even if already in svg namespace 1`] = `
"function anonymous(bdom, helpers
) {
2021-11-29 13:22:04 +01:00
let { text, createBlock, list, multi, html, toggler, component, comment } = bdom;
2021-11-19 11:31:04 +01:00
let block1 = createBlock(\`<svg block-ns=\\"http://www.w3.org/2000/svg\\"><svg block-ns=\\"http://www.w3.org/2000/svg\\"/></svg>\`);
return function template(ctx, node, key = \\"\\") {
return block1();
}
}"
`;