mirror of https://github.com/sveltejs/svelte
parent
d5bb267922
commit
390bc7892d
@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
html: '<input type="text" value="Hello World"/>',
|
||||||
|
};
|
@ -0,0 +1,12 @@
|
|||||||
|
<input {{options}}/>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data: () => ({
|
||||||
|
options: {
|
||||||
|
type: 'text',
|
||||||
|
value: 'Hello World'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
};
|
||||||
|
</script>
|
@ -0,0 +1,19 @@
|
|||||||
|
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();
|
||||||
|
}
|
||||||
|
};
|
After Width: | Height: | Size: 229 B |
Loading…
Reference in new issue