mirror of https://github.com/sveltejs/svelte
20 lines
388 B
20 lines
388 B
export default {
|
|
html: `
|
|
<svg>
|
|
<defs>
|
|
<circle id='stamp' r='10' fill='blue'/>
|
|
</defs>
|
|
|
|
<use xlink:href='#stamp' x='20' y='20'/>
|
|
</svg>
|
|
`,
|
|
test ( assert, component, target ) {
|
|
const use = target.querySelector( 'use' );
|
|
const href = use.attributes[ 'xlink:href' ];
|
|
|
|
assert.equal( href.namespaceURI, 'http://www.w3.org/1999/xlink' );
|
|
|
|
component.teardown();
|
|
}
|
|
};
|