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/test/runtime/samples/attribute-casing/_config.js

17 lines
376 B

export default {
html: `
<div class='SHOUTY'>YELL</div>
<svg viewBox='0 0 100 100'>
<text textLength=100>hellooooo</text>
</svg>
`,
test(assert, component, target) {
const attr = sel => target.querySelector(sel).attributes[0].name;
assert.equal(attr('div'), 'class');
assert.equal(attr('svg'), 'viewBox');
assert.equal(attr('text'), 'textLength');
}
};