Skip to content

Commit 0f620e8

Browse files
committed
test
1 parent 1211fdc commit 0f620e8

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<script>
2+
function renderContent(node) {
3+
node.textContent = 'foo';
4+
}
5+
6+
const test = await Promise.resolve('foo');
7+
</script>
8+
9+
<p>{test}</p>
10+
<div {@attach renderContent}></div>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { tick } from 'svelte';
2+
import { test } from '../../test';
3+
4+
export default test({
5+
async test({ assert, target }) {
6+
await tick();
7+
assert.htmlEqual(target.innerHTML, '<p>foo</p><div>foo</div>');
8+
}
9+
});
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script>
2+
import Inner from './Inner.svelte';
3+
</script>
4+
5+
<svelte:boundary>
6+
<Inner />
7+
8+
{#snippet pending()}
9+
<p>pending</p>
10+
{/snippet}
11+
</svelte:boundary>

0 commit comments

Comments
 (0)