mirror of https://github.com/sveltejs/svelte
Merge pull request #241 from sveltejs/gh-233
dont use properties when setting <svg> element attributespull/242/head
commit
5755334322
@ -0,0 +1,14 @@
|
||||
// this looks like another JSDOM quirk — svg.className = 'foo' behaves
|
||||
// differently from browsers. So this test succeeds even when it should fail
|
||||
export default {
|
||||
html: `<svg class='foo'></svg>`,
|
||||
|
||||
test ( assert, component, target ) {
|
||||
const svg = target.querySelector( 'svg' );
|
||||
|
||||
assert.equal( svg.namespaceURI, 'http://www.w3.org/2000/svg' );
|
||||
assert.equal( svg.getAttribute( 'class' ), 'foo' );
|
||||
|
||||
component.teardown();
|
||||
}
|
||||
};
|
After Width: | Height: | Size: 24 B |
Loading…
Reference in new issue