mirror of https://github.com/sveltejs/svelte
pull/7259/head
parent
5c256bffd1
commit
37dfcad363
@ -0,0 +1,18 @@
|
|||||||
|
export default {
|
||||||
|
skip_if_ssr: true,
|
||||||
|
skip_if_hydrate: true,
|
||||||
|
skip_if_hydrate_from_ssr: true,
|
||||||
|
|
||||||
|
async test({ raf, assert, component, window }) {
|
||||||
|
component.visible = true;
|
||||||
|
raf.tick(100)
|
||||||
|
component.visible = false;
|
||||||
|
raf.tick(200)
|
||||||
|
raf.tick(60)
|
||||||
|
|
||||||
|
assert.htmlEqual(
|
||||||
|
window.document.head.innerHTML,
|
||||||
|
''
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
<script>
|
||||||
|
export let visible = true;
|
||||||
|
|
||||||
|
function foo(node, params) {
|
||||||
|
return {
|
||||||
|
duration: 100,
|
||||||
|
css: () => ''
|
||||||
|
};
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{#if visible}
|
||||||
|
<div transition:foo></div>
|
||||||
|
{/if}
|
||||||
Loading…
Reference in new issue