mirror of https://github.com/sveltejs/svelte
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.
20 lines
387 B
20 lines
387 B
8 years ago
|
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' );
|
||
|
|
||
8 years ago
|
component.destroy();
|
||
8 years ago
|
}
|
||
|
};
|