mirror of https://github.com/sveltejs/svelte
parent
324f74b427
commit
6b669ec28e
@ -0,0 +1,18 @@
|
|||||||
|
// Test support for unknown namespaces preserving attribute case (eg svelte-native).
|
||||||
|
|
||||||
|
export default {
|
||||||
|
html: `
|
||||||
|
<page xmlns="tns" horizontalAlignment="center">
|
||||||
|
<button textWrap="true" text="button">
|
||||||
|
</page>
|
||||||
|
`,
|
||||||
|
options: {
|
||||||
|
hydrate: false, // Hydrations currently doesn't work, the case sensitivity is only handled for svg elements.
|
||||||
|
},
|
||||||
|
|
||||||
|
test({ assert, target }) {
|
||||||
|
const attr = sel => target.querySelector(sel).attributes[0].name;
|
||||||
|
assert.equal(attr('page'), "horizontalAlignment");
|
||||||
|
assert.equal(attr('button'), "textWrap")
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,3 @@
|
|||||||
|
<page horizontalAlignment="center" xmlns="tns">
|
||||||
|
<button textWrap="true" text="button">
|
||||||
|
</page>
|
Loading…
Reference in new issue