mirror of https://github.com/sveltejs/svelte
Merge branch 'fix-lost-anchor-if-if-block-first' of https://github.com/stalkerg/svelte into stalkerg-fix-lost-anchor-if-if-block-first
commit
e5f5995458
@ -0,0 +1,12 @@
|
|||||||
|
export default {
|
||||||
|
data: {
|
||||||
|
visible: false
|
||||||
|
},
|
||||||
|
|
||||||
|
html: '<div><div>before me</div></div>',
|
||||||
|
|
||||||
|
test ( assert, component, target ) {
|
||||||
|
component.set({ visible: true });
|
||||||
|
assert.htmlEqual(target.innerHTML, '<div><div>i am visible</div><div>before me</div></div>' );
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,6 @@
|
|||||||
|
<div>
|
||||||
|
{#if visible}
|
||||||
|
<div>i am visible</div>
|
||||||
|
{/if}
|
||||||
|
<div>before me</div>
|
||||||
|
</div>
|
Loading…
Reference in new issue