You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/packages/svelte/tests/runtime-legacy/samples/dynamic-element-svg-options.../_config.js

13 lines
384 B

import { test } from '../../test';
export default test({
html: '<svg><rect fill="black" width="10" height="90"></rect></svg>',
test({ assert, target }) {
const svg = target.querySelector('svg');
const rect = target.querySelector('rect');
assert.equal(svg?.namespaceURI, 'http://www.w3.org/2000/svg');
assert.equal(rect?.namespaceURI, 'http://www.w3.org/2000/svg');
}
});