mirror of https://github.com/sveltejs/svelte
commit
635348a919
@ -0,0 +1,12 @@
|
||||
export default {
|
||||
data: {
|
||||
condition: false
|
||||
},
|
||||
|
||||
test(assert, component, target, window) {
|
||||
assert.equal(window.document.title, '');
|
||||
|
||||
component.set({ condition: true });
|
||||
assert.equal(window.document.title, 'woo!!!');
|
||||
}
|
||||
};
|
@ -0,0 +1,5 @@
|
||||
<svelte:head>
|
||||
{#if condition}
|
||||
<title>woo!!!</title>
|
||||
{/if}
|
||||
</svelte:head>
|
Loading…
Reference in new issue